1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/glitchsoc_ynh.git synced 2024-09-03 19:15:59 +02:00

Add stop and start services

This commit is contained in:
nemsia 2017-04-11 17:03:11 +02:00 committed by GitHub
parent 571a4825b5
commit 6cca229765

View file

@ -31,6 +31,9 @@ db_name=$app
sudo sed -i "s@__PATH__@$app@g" ../conf/nginx.conf*
sudo sed -i "s@__FINALPATH__@$final_path/@g" ../conf/nginx.conf*
# Stop Mastodon Services
sudo systemctl stop /etc/systemd/system/mastodon-*.service
# Update Mastodon
sudo su - $app <<COMMANDS
pushd ~/live
@ -39,6 +42,9 @@ RAILS_ENV=production bin/bundle exec rails db:migrate
RAILS_ENV=production bin/bundle exec rails assets:precompile
COMMANDS
# Start Mastodon Services
sudo systemctl start /etc/systemd/system/mastodon-*.service
# If app is public, add url to SSOWat conf as skipped_uris
if [ $is_public = "Yes" ];
then