Simplify WebSSH path placeholder and fix typo

This commit is contained in:
Alexandre CATTEAU 2022-08-19 13:22:42 +02:00
parent 818ce0fd32
commit a02575b047
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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