mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-03 12:38:46 +02:00
Clarify default datadirectory if nextcloud not installed
https://github.com/alexbelgium/hassio-addons/issues/775
This commit is contained in:
@@ -17,10 +17,11 @@ chown -R "$PUID:$PGID" "/data/config"
|
|||||||
|
|
||||||
# Check current version
|
# Check current version
|
||||||
if [ -f /data/config/www/nextcloud/config/config.php ]; then
|
if [ -f /data/config/www/nextcloud/config/config.php ]; then
|
||||||
datadirectory="$(sed -n "s|.*datadirectory' => '*\(.*[^ ]\) *',.*|\1|p" /data/config/www/nextcloud/config/config.php)"
|
datadirectory="$(sed -n "s|.*datadirectory.*' => '*\(.*[^ ]\) *',.*|\1|p" /data/config/www/nextcloud/config/config.php)"
|
||||||
echo "... Data directory detected : $datadirectory"
|
echo "... Data directory detected : $datadirectory"
|
||||||
else
|
else
|
||||||
datadirectory=/share/nextcloud
|
datadirectory=/share/nextcloud
|
||||||
|
echo "Nextcloud is not installed yet, the default data directory is : $datadirectory. You can change it during nextcloud installation."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Is the directory valid
|
# Is the directory valid
|
||||||
|
|||||||
Reference in New Issue
Block a user