Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4bc4dc6

Browse files
committed
use sudo on restart
1 parent beb11a5 commit 4bc4dc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

upgrade.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def getSha():
2424
install = 'curl -L https://coder.com/install.sh | sh'
2525
os.system(install)
2626
# reload coder service
27-
reload = 'sudo systemctl daemon-reload && systemctl restart coder.service'
27+
reload = 'sudo systemctl daemon-reload && sudo systemctl restart coder.service'
2828
os.system(reload)
2929
# write new sha to file
3030
with open('sha.txt', 'w') as f:

0 commit comments

Comments
 (0)