diff options
| author | yalh76 <yalh@yahoo.com> | 2019-11-22 23:24:09 +0100 |
|---|---|---|
| committer | yalh76 <yalh@yahoo.com> | 2019-11-22 23:24:09 +0100 |
| commit | 95a5efb60811ae0062e7cda45b6875d979103dd2 (patch) | |
| tree | de3c90ee7f8f45d0d9c7a11bf9ac2e55e779cf82 /scripts/upgrade | |
| parent | f1ea723f4402b1adff2c393e1e7e207f0b301f7b (diff) | |
| download | mastodon_ynh-95a5efb60811ae0062e7cda45b6875d979103dd2.tar.gz mastodon_ynh-95a5efb60811ae0062e7cda45b6875d979103dd2.tar.bz2 mastodon_ynh-95a5efb60811ae0062e7cda45b6875d979103dd2.zip | |
Fix case of missing system folder
Diffstat (limited to 'scripts/upgrade')
| -rw-r--r-- | scripts/upgrade | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/upgrade b/scripts/upgrade index 5c763a4..edff694 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -172,7 +172,9 @@ then tmpdir="$(mktemp -d)" mkdir $tmpdir/system - rsync -a "$final_path/live/public/system" "$tmpdir/." + if [ -d "$final_path/live/public/system" ]; then + rsync -a "$final_path/live/public/system" "$tmpdir/." + fi rsync -a "$final_path/live/.env.production" "$tmpdir/." ynh_secure_remove --file="$final_path/live/" ynh_setup_source --dest_dir="$final_path/live" |
