mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-08 06:50:58 +02:00
Github bot : script beautyshied
This commit is contained in:
@@ -17,7 +17,7 @@ fi
|
|||||||
# Allow config dir
|
# Allow config dir
|
||||||
export IMPORT_DIR_ALLOWLIST="$CONFIGSOURCE"
|
export IMPORT_DIR_ALLOWLIST="$CONFIGSOURCE"
|
||||||
export IMPORT_DIR_WHITELIST="${CONFIGSOURCE}/import_files"
|
export IMPORT_DIR_WHITELIST="${CONFIGSOURCE}/import_files"
|
||||||
|
|
||||||
################
|
################
|
||||||
# CRON OPTIONS #
|
# CRON OPTIONS #
|
||||||
################
|
################
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ function nextcloud_download {
|
|||||||
mkdir -p /app
|
mkdir -p /app
|
||||||
if [ -f /app/nextcloud.tar.bz2 ]; then rm /app/nextcloud.tar.bz2; fi
|
if [ -f /app/nextcloud.tar.bz2 ]; then rm /app/nextcloud.tar.bz2; fi
|
||||||
curl -o /app/nextcloud.tar.bz2 -L "https://download.nextcloud.com/server/releases/$1.tar.bz2"
|
curl -o /app/nextcloud.tar.bz2 -L "https://download.nextcloud.com/server/releases/$1.tar.bz2"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check current version
|
# Check current version
|
||||||
if [ -f /data/config/www/nextcloud/version.php ]; then
|
if [ -f /data/config/www/nextcloud/version.php ]; then
|
||||||
@@ -114,7 +114,7 @@ if [ -f /reinstall ]; then
|
|||||||
# Reinstall
|
# Reinstall
|
||||||
bashio::log.green "... reinstall ongoing, please wait"
|
bashio::log.green "... reinstall ongoing, please wait"
|
||||||
if [ -f /data/config/www/nextcloud/index.php ]; then rm /data/config/www/nextcloud/index.php; fi && \
|
if [ -f /data/config/www/nextcloud/index.php ]; then rm /data/config/www/nextcloud/index.php; fi && \
|
||||||
# INSTALL
|
# INSTALL
|
||||||
/./etc/s6-overlay/s6-rc.d/init-nextcloud-config/run
|
/./etc/s6-overlay/s6-rc.d/init-nextcloud-config/run
|
||||||
# RESET PERMISSIONS
|
# RESET PERMISSIONS
|
||||||
/./etc/cont-init.d/01-folders.sh
|
/./etc/cont-init.d/01-folders.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user