diff --git a/install.sh b/install.sh index 40e85d7..fd9f4a1 100755 --- a/install.sh +++ b/install.sh @@ -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 diff --git a/webssh.service b/webssh.service index 03308d0..67737d4 100644 --- a/webssh.service +++ b/webssh.service @@ -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