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

Set right permission to app while upgrade

This commit is contained in:
anmol26s 2018-12-26 11:25:29 +05:30
parent 209a618e52
commit 4941a424f1

View file

@ -109,8 +109,6 @@ ynh_install_app_dependencies \
# STANDARD UPGRADE STEPS
#=================================================
# Change owner of live folder
chown -R $app: $final_path/live
# Stop Mastodon Services
# Restart Mastodon
@ -142,6 +140,8 @@ ynh_add_nginx_config
ynh_setup_source "$final_path/.rbenv" "app-rbenv"
ynh_setup_source "$final_path/.rbenv/plugins/ruby-build" "app-ruby-build"
chown -R "$app": "$final_path"
# Install ruby 2.5.1
(
exec_as "$app" $final_path/.rbenv/bin/rbenv install -s 2.5.3 || true
@ -186,6 +186,10 @@ pushd ~/live
RAILS_ENV=production $final_path/.rbenv/versions/2.5.3/bin/bundle exec rails db:migrate
COMMANDS
)
# permissions to app files
chown -R "$app": "$final_path"
#=================================================
# SETUP SYSTEMD
#=================================================