diff options
| author | Félix Piédallu <felix@piedallu.me> | 2024-05-27 12:28:15 +0200 |
|---|---|---|
| committer | Félix Piédallu <felix@piedallu.me> | 2024-05-27 12:56:43 +0200 |
| commit | 07c74254f05cd4f5ae2140bdd9e317f1eeb25c7a (patch) | |
| tree | 3fcc23b970a1ba5ae4c422a959008333b7be0f77 /scripts/upgrade | |
| parent | f5f9c3b7ae440b93e9c1863fbfa8c0db2f0ffc08 (diff) | |
| download | mastodon_ynh-07c74254f05cd4f5ae2140bdd9e317f1eeb25c7a.tar.gz mastodon_ynh-07c74254f05cd4f5ae2140bdd9e317f1eeb25c7a.tar.bz2 mastodon_ynh-07c74254f05cd4f5ae2140bdd9e317f1eeb25c7a.zip | |
Fix permissions of public nginx-served directory
Diffstat (limited to 'scripts/upgrade')
| -rw-r--r-- | scripts/upgrade | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/upgrade b/scripts/upgrade index c6ac82d..421ddb2 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -99,6 +99,9 @@ pushd "$install_dir/live" ynh_exec_warn_less ynh_exec_as $app RAILS_ENV=production $ynh_ruby_load_path $ld_preload bin/bundle exec rails assets:precompile popd +chown "$app:www-data" "$install_dir" +chown -R "$app:www-data" "$install_dir/live/public" + #================================================= # REAPPLY SYSTEM CONFIGURATIONS #================================================= |
