From 2ab89810c66a7914735be96cd4bbe53cd66a2f67 Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Tue, 18 Jul 2017 19:11:58 +0200 Subject: [PATCH] Fix installation on YunoHost 2.6 (fixes #45) --- scripts/upgrade.d/upgrade.generic.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade.d/upgrade.generic.sh b/scripts/upgrade.d/upgrade.generic.sh index 4765259..16f3307 100755 --- a/scripts/upgrade.d/upgrade.generic.sh +++ b/scripts/upgrade.d/upgrade.generic.sh @@ -17,8 +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. - + 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 sed -i "s@#DATADIR#@${DATADIR}@g" ../conf/config.json