summaryrefslogtreecommitdiffstats
path: root/ci/02-maasdeploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/02-maasdeploy.sh')
-rwxr-xr-xci/02-maasdeploy.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/ci/02-maasdeploy.sh b/ci/02-maasdeploy.sh
index 5d00f5bb..c40cb726 100755
--- a/ci/02-maasdeploy.sh
+++ b/ci/02-maasdeploy.sh
@@ -31,9 +31,9 @@ esac
echo "$USER ALL=(ALL) NOPASSWD:ALL" > 90-joid-init
if [ -e /etc/sudoers.d/90-joid-init ]; then
- cp /etc/sudoers.d/90-joid-init 91-joid-init
+ sudo cp /etc/sudoers.d/90-joid-init 91-joid-init
cat 90-joid-init >> 91-joid-init
- sudo chown root:root 90-joid-init
+ sudo chown root:root 91-joid-init
sudo mv 91-joid-init /etc/sudoers.d/
else
sudo chown root:root 90-joid-init