Simplify WebSSH path placeholder and fix typo
This commit is contained in:
parent
818ce0fd32
commit
a02575b047
@ -13,12 +13,12 @@ fi
|
||||
echo "Copying WebSSH unit to system directory..."
|
||||
if [[ $user != 'root' ]]; then
|
||||
sudo cp webssh.service /etc/systemd/system/
|
||||
sudo sed -i -e "s:PH_WEBSSH_PATH:$webssh_part:g" /etc/systemd/system/webssh.service
|
||||
sudo sed -i -e "s:PH_PATH:$webssh_path:g" /etc/systemd/system/webssh.service
|
||||
sudo sed -i -e "s:PH_ADDR:$address:g" /etc/systemd/system/webssh.service
|
||||
sudo sed -i -e "s:PH_PORT:$port:g" /etc/systemd/system/webssh.service
|
||||
else
|
||||
cp webssh.service /etc/systemd/system/
|
||||
sed -i -e "s:PH_WEBSSH_PATH:$webssh_part:g" /etc/systemd/system/webssh.service
|
||||
sed -i -e "s:PH_PATH:$webssh_path:g" /etc/systemd/system/webssh.service
|
||||
sed -i -e "s:PH_ADDR:$address:g" /etc/systemd/system/webssh.service
|
||||
sed -i -e "s:PH_PORT:$port:g" /etc/systemd/system/webssh.service
|
||||
fi
|
||||
|
@ -4,7 +4,7 @@ After=network.target
|
||||
|
||||
[Service]
|
||||
User=www-data
|
||||
ExecStart=/usr/bin/python3 PH_WEBSSH_PATH --address='PH_ADDR' --port=PH_PORT
|
||||
ExecStart=/usr/bin/python3 PH_PATH --address='PH_ADDR' --port=PH_PORT
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
Loading…
Reference in New Issue
Block a user