From 83cc957e37ddf8551fff11b602586ee0c520fb08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 13 Jun 2022 15:53:31 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index abba826..cde8496 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -103,21 +103,21 @@ then # Download, check integrity, uncompress and patch the source from app.src # Frontend - ynh_setup_source --dest_dir="$final_path" --source_id="front" --keep="/etc/vikunja/config.yml" + ynh_setup_source --dest_dir="$final_path" --source_id="front" --keep="/etc/$app/config.yml" # Backend - mkdir -p "/opt/vikunja/files" + mkdir -p "/opt/$app/files" tempdir="$(mktemp -d)" ynh_setup_source --dest_dir=$tempdir --source_id=$YNH_ARCH back="$(find $tempdir -name "vikunja-*" \! -name "*.sha256")" - cp "$back" "/opt/vikunja/vikunja" + cp "$back" "/opt/$app/vikunja" fi chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" -chmod +x "/opt/vikunja/vikunja" -chown -R $app:www-data "/opt/vikunja/files" +chmod +x "/opt/$app/vikunja" +chown -R $app:www-data "/opt/$app/files" #================================================= # NGINX CONFIGURATION