mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
clean
This commit is contained in:
parent
8eca3f6541
commit
133bb631eb
1 changed files with 1 additions and 26 deletions
|
@ -32,35 +32,11 @@ sudo sed -i "s@__PATH__@$app@g" ../conf/nginx.conf*
|
||||||
sudo sed -i "s@__FINALPATH__@$final_path/@g" ../conf/nginx.conf*
|
sudo sed -i "s@__FINALPATH__@$final_path/@g" ../conf/nginx.conf*
|
||||||
|
|
||||||
# Stop Mastodon Services
|
# Stop Mastodon Services
|
||||||
<<<<<<< HEAD
|
|
||||||
sudo systemctl stop mastodon-*
|
|
||||||
=======
|
|
||||||
sudo systemctl stop mastodon-*.service
|
sudo systemctl stop mastodon-*.service
|
||||||
>>>>>>> refs/remotes/YunoHost-Apps/master
|
|
||||||
|
|
||||||
# Update Mastodon
|
# Update Mastodon
|
||||||
sudo su - $app <<COMMANDS
|
sudo su - $app <<COMMANDS
|
||||||
pushd ~/live
|
pushd ~/live
|
||||||
<<<<<<< HEAD
|
|
||||||
git pull
|
|
||||||
bundle install
|
|
||||||
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 mastodon-*
|
|
||||||
|
|
||||||
# If app is public, add url to SSOWat conf as skipped_uris
|
|
||||||
if [ $is_public = "Yes" ];
|
|
||||||
then
|
|
||||||
ynh_app_setting_set "$app" unprotected_uris "/"
|
|
||||||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
|
||||||
else
|
|
||||||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
|
||||||
fi
|
|
||||||
|
|
||||||
=======
|
|
||||||
git fetch
|
git fetch
|
||||||
git pull https://github.com/tootsuite/mastodon.git master
|
git pull https://github.com/tootsuite/mastodon.git master
|
||||||
git checkout v1.2
|
git checkout v1.2
|
||||||
|
@ -71,8 +47,7 @@ RAILS_ENV=production bundle exec rails assets:precompile
|
||||||
RAILS_ENV=production bundle exec rails db:migrate
|
RAILS_ENV=production bundle exec rails db:migrate
|
||||||
COMMANDS
|
COMMANDS
|
||||||
|
|
||||||
>>>>>>> refs/remotes/YunoHost-Apps/master
|
|
||||||
# Reload Nginx
|
# Reload Nginx
|
||||||
sudo systemctl reload nginx
|
sudo systemctl reload nginx
|
||||||
# Restart Mastodon
|
# Restart Mastodon
|
||||||
sudo systemctl start mastodon-*.service
|
sudo systemctl start mastodon-*.service
|
||||||
|
|
Loading…
Add table
Reference in a new issue