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:
parent
571a4825b5
commit
6cca229765
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
@ -51,4 +57,4 @@ fi
|
|||
# Reload Nginx
|
||||
sudo systemctl reload nginx
|
||||
# Reload Mastodon
|
||||
sudo systemctl restart mastodon-*.service
|
||||
sudo systemctl restart mastodon-*.service
|
||||
|
|
Loading…
Reference in a new issue