Skip to content

Commit

Permalink
fix(remote-prov): No sudo (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfikastheo authored Dec 17, 2024
1 parent e8fd6f4 commit 50d0056
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/remote-provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ provision_device() {
exit 1
fi
cp /${key_dir}/f0000013.cert /usr/persistent/ || true
sudo su
sudo su || true
mount -o remount,exec /tmp
systemctl stop nv-tee-supplicant.service
rm -rf /usr/persistent/tee/ ${key_dir}
systemctl start nv-tee-supplicant.service
su worldcoin -c 'cd -- ${se_dir}; \
/${plug_trust}/delete-all.sh || true; /${plug_trust}/provision.sh --short'
exit 0
cp /usr/persistent/f0000013.cert ${key_dir} || true
exit 0
EOF
else
${ssh_prefix} ssh worldcoin@"${remote}" bash --noprofile --norc <<EOF
Expand Down

0 comments on commit 50d0056

Please sign in to comment.