From 81d3326c0838cad72681f3c46aa41baaf58a7735 Mon Sep 17 00:00:00 2001 From: Rafi59 Date: Sun, 4 Jun 2017 14:47:32 +0200 Subject: [PATCH] Fix temp directory rights on upgrade --- scripts/upgrade.d/upgrade.generic.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade.d/upgrade.generic.sh b/scripts/upgrade.d/upgrade.generic.sh index 4765259..c68b8ca 100755 --- a/scripts/upgrade.d/upgrade.generic.sh +++ b/scripts/upgrade.d/upgrade.generic.sh @@ -17,7 +17,9 @@ COMMON_UPGRADE () { # Retrieve new Nextcloud sources in a temporary directory TMPDIR=$(mktemp -d) - extract_nextcloud "$TMPDIR" # Télécharge nextcloud, vérifie sa somme de contrôle et le décompresse. + # Set temp folder ownership + sudo chown -R $app: "$TMPDIR" + extract_nextcloud "$TMPDIR" "$app" # Télécharge nextcloud, vérifie sa somme de contrôle et le décompresse. # Copy Nextcloud configuration file sed -i "s@#DOMAIN#@${domain}@g" ../conf/config.json