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

Fix installation on YunoHost 2.6 (fixes #45)

This commit is contained in:
Jimmy Monin 2017-07-18 19:11:58 +02:00
parent a2f8542a3c
commit 2ab89810c6

View file

@ -17,8 +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. 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
sed -i "s@#DATADIR#@${DATADIR}@g" ../conf/config.json sed -i "s@#DATADIR#@${DATADIR}@g" ../conf/config.json