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:
parent
209a618e52
commit
4941a424f1
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue