mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-04 19:07:43 +01:00
Update 02-init_steps.sh
This commit is contained in:
@@ -22,8 +22,8 @@ done
|
|||||||
echo "Checking installation"
|
echo "Checking installation"
|
||||||
if [[ "$(occ --version)" == *"Composer autoloader not found"* ]]; then
|
if [[ "$(occ --version)" == *"Composer autoloader not found"* ]]; then
|
||||||
bashio::log.fatal "Issue with installation detected, reinstallation will proceed. Your files are copied in /share/nextcloud_backup_$(date +%F)"
|
bashio::log.fatal "Issue with installation detected, reinstallation will proceed. Your files are copied in /share/nextcloud_backup_$(date +%F)"
|
||||||
mv /data/config/www/nextcloud /share/nextcloud_backup_$(date +%F)
|
rm /data/config/www/nextcloud/index.php
|
||||||
bashio::addon.restart
|
/./etc/s6-overlay/s6-rc.d/init-nextcloud-config/run
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add new log info to config.php
|
# Add new log info to config.php
|
||||||
|
|||||||
Reference in New Issue
Block a user