mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
Merge 7af1f88be4
into 7c60ab9d4b
This commit is contained in:
commit
dea809bfa4
4 changed files with 11 additions and 5 deletions
|
@ -253,4 +253,4 @@ ynh_secure_remove () {
|
||||||
echo "$path_to_remove doesn't deleted because it's not exist." >&2
|
echo "$path_to_remove doesn't deleted because it's not exist." >&2
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -189,11 +189,12 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
# Install crontab
|
# Install crontab
|
||||||
sudo cp ../conf/crontab_mastodon /etc/cron.d/$app
|
sudo cp ../conf/crontab_mastodon /etc/cron.d/$app
|
||||||
sudo sed -i "s@__APP__@$app@g" /etc/cron.d/$app
|
sudo sed -i "s@__APP__@$app@g" /etc/cron.d/$app
|
||||||
# Restart crontab
|
|
||||||
sudo systemctl restart cron
|
# Set app public
|
||||||
|
ynh_app_setting_set "$app" unprotected_uris "/"
|
||||||
|
|
||||||
# Reload SSOwat configuration
|
# Reload SSOwat configuration
|
||||||
sudo yunohost app ssowatconf
|
sudo yunohost app ssowatconf
|
||||||
|
|
||||||
# Reload Nginx
|
# Reload Nginx
|
||||||
sudo systemctl reload nginx
|
sudo systemctl reload nginx
|
||||||
|
|
|
@ -19,6 +19,7 @@ if [ -e "/etc/systemd/system/mastodon-web.service" ]; then
|
||||||
sudo systemctl stop mastodon-web.service
|
sudo systemctl stop mastodon-web.service
|
||||||
ynh_secure_remove "/etc/systemd/system/mastodon-web.service"
|
ynh_secure_remove "/etc/systemd/system/mastodon-web.service"
|
||||||
sudo systemctl disable mastodon-web.service
|
sudo systemctl disable mastodon-web.service
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Stop mastodon-sidekiq
|
# Stop mastodon-sidekiq
|
||||||
|
|
|
@ -51,5 +51,9 @@ COMMANDS
|
||||||
|
|
||||||
# Reload Nginx
|
# Reload Nginx
|
||||||
sudo systemctl reload nginx
|
sudo systemctl reload nginx
|
||||||
|
|
||||||
|
# Set app public
|
||||||
|
ynh_app_setting_set "$app" unprotected_uris "/"
|
||||||
|
|
||||||
# Restart Mastodon
|
# Restart Mastodon
|
||||||
sudo systemctl start mastodon-*.service
|
sudo systemctl start mastodon-*.service
|
||||||
|
|
Loading…
Add table
Reference in a new issue