websoft9/systemd/test/install.sh

12 lines
375 B
Bash
Raw Normal View History

2023-09-20 14:44:46 +08:00
#!/bin/bash
# Define PATH
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
# Export PATH
export PATH
export install_path="/data/websoft9"
2023-09-20 14:59:19 +08:00
chmod +x $install_path/systemd/send_credentials.sh
2023-09-20 14:44:46 +08:00
cp $install_path/systemd/websoft9.service /lib/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable websoft9.service
sudo systemctl start websoft9