diff options
| author | Thomas <51749973+Thovi98@users.noreply.github.com> | 2025-08-21 13:50:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-21 13:50:05 +0200 |
| commit | b8c794784bc1e07404cb9854499e4daa415e42d0 (patch) | |
| tree | 3a50994a4d9e7cb2a987f6885188859a70d88641 /scripts/upgrade | |
| parent | e827fbe4a89c0dcd51308457e5f00a9fc5dcc18b (diff) | |
| download | mastodon_ynh-b8c794784bc1e07404cb9854499e4daa415e42d0.tar.gz mastodon_ynh-b8c794784bc1e07404cb9854499e4daa415e42d0.tar.bz2 mastodon_ynh-b8c794784bc1e07404cb9854499e4daa415e42d0.zip | |
fix permissions
Diffstat (limited to 'scripts/upgrade')
| -rw-r--r-- | scripts/upgrade | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/upgrade b/scripts/upgrade index ed19b64..d9fa23f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -83,14 +83,14 @@ ynh_nodejs_install # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= -# FIXME: this is still supported but the recommendation is now to *always* re-setup the app sources wether or not the upstream sources changed -if ynh_app_upstream_version_changed -then - ynh_script_progression "Upgrading source files..." +ynh_script_progression "Upgrading source files..." - # Download, check integrity, uncompress and patch the source from manifest.toml - ynh_setup_source --dest_dir="$install_dir/live" --full_replace --keep="public/system .env.production" -fi +# Download, check integrity, uncompress and patch the source from manifest.toml +ynh_setup_source --dest_dir="$install_dir/live" --full_replace --keep="public/system .env.production" + +chmod -R 775 "$install_dir" +chmod o-rwx "$install_dir" +chown -R $app:www-data "$install_dir" #================================================= # BUILD ASSETS |
