1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rocketchat_ynh.git synced 2024-09-03 20:16:25 +02:00

Improves install and remove script

This commit is contained in:
Selamanse 2017-07-19 11:27:56 +02:00
parent 95033480b1
commit 08df31dcae
2 changed files with 2 additions and 0 deletions

View file

@ -63,6 +63,7 @@ sudo mkdir -p $final_path
# Copy and set systemd configuration
sed -i "s@CHANGEMETOROOTURL@$domain/@g" ../conf/Rocketchat.service
sudo cp ../conf/Rocketchat.service /etc/systemd/system/
sudo systemctl daemon-reload
# Copy and set nginx configuration
nginx_conf="/etc/nginx/conf.d/${domain}.d/${app}.conf"

View file

@ -19,4 +19,5 @@ sudo rm -f /etc/nginx/conf.d/$domain.d/rocketchat.conf
sudo rm -rf /var/log/rocketchat/
sudo rm -f /etc/systemd/system/Rocketchat.service
sudo systemctl daemon-reload
sudo systemctl restart nginx