Update homebox service paths in homebox.sh
This commit is contained in:
parent
67a20a9b4a
commit
856c724b5d
@ -27,8 +27,9 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
if [[ -x /opt/homebox ]]; then
|
||||
sed -i 's|/opt\b|/opt/homebox|g' /etc/systemd/system/homebox.service
|
||||
sed -i 's|^ExecStart=/opt/homebox$|ExecStart=/opt/homebox/homebox|' /etc/systemd/system/homebox.service
|
||||
sed -i 's|WorkingDirectory=/opt$|WorkingDirectory=/opt/homebox|' /etc/systemd/system/homebox.service
|
||||
sed -i 's|ExecStart=/opt/homebox$|ExecStart=/opt/homebox/homebox|' /etc/systemd/system/homebox.service
|
||||
sed -i 's|EnvironmentFile=/opt/.env$|EnvironmentFile=/opt/homebox/.env|' /etc/systemd/system/homebox.service
|
||||
systemctl daemon-reload
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user