Skip to content

Commit

Permalink
Switch to owner change instead of shh user change
Browse files Browse the repository at this point in the history
Fixes #3542
  • Loading branch information
MartijnCuppens authored Jan 11, 2024
1 parent b053223 commit 2dd1579
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions recipe/provision/website.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@

desc('Provision website');
task('provision:website', function () {
set('remote_user', 'deployer');

run("[ -d {{deploy_path}} ] || mkdir {{deploy_path}}");
run("chown -R deployer:deployer {{deploy_path}}");

$domain = get('domain');
$phpVersion = get('php_version');
Expand Down Expand Up @@ -69,7 +68,6 @@
run("echo $'$caddyfile' > Caddyfile");
}

set('remote_user', 'root');
if (!test("grep -q 'import $deployPath/Caddyfile' /etc/caddy/Caddyfile")) {
run("echo 'import $deployPath/Caddyfile' >> /etc/caddy/Caddyfile");
}
Expand Down

0 comments on commit 2dd1579

Please sign in to comment.