1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

Fix temp directory rights on upgrade

This commit is contained in:
Rafi59 2017-06-04 14:47:32 +02:00 committed by GitHub
parent 38462a53dc
commit 81d3326c08

View file

@ -17,7 +17,9 @@ COMMON_UPGRADE () {
# Retrieve new Nextcloud sources in a temporary directory # Retrieve new Nextcloud sources in a temporary directory
TMPDIR=$(mktemp -d) 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 # Copy Nextcloud configuration file
sed -i "s@#DOMAIN#@${domain}@g" ../conf/config.json sed -i "s@#DOMAIN#@${domain}@g" ../conf/config.json