diff options
| author | anmol26s <github@datamol.org> | 2018-12-26 11:25:29 +0530 |
|---|---|---|
| committer | anmol26s <github@datamol.org> | 2018-12-26 11:25:29 +0530 |
| commit | 4941a424f10ed149db43d70f4846af3776737b38 (patch) | |
| tree | 6d4b3475c1de30ae4e570b07e08fd7f9b0feacf9 /scripts/upgrade | |
| parent | 209a618e52a1d908f17d97b0a1b5d40b1b014d7f (diff) | |
| download | mastodon_ynh-4941a424f10ed149db43d70f4846af3776737b38.tar.gz mastodon_ynh-4941a424f10ed149db43d70f4846af3776737b38.tar.bz2 mastodon_ynh-4941a424f10ed149db43d70f4846af3776737b38.zip | |
Set right permission to app while upgrade
Diffstat (limited to 'scripts/upgrade')
| -rw-r--r-- | scripts/upgrade | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/upgrade b/scripts/upgrade index f1be8c1..d337e6d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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 #================================================= |
