Browse Source

Fix temp directory rights on upgrade

pull/37/head
Rafi59 9 years ago
committed by GitHub
parent
commit
81d3326c08
  1. 4
      scripts/upgrade.d/upgrade.generic.sh

4
scripts/upgrade.d/upgrade.generic.sh

@ -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

Loading…
Cancel
Save