mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-06 11:54:53 +01:00
This commit is contained in:
@@ -18,6 +18,13 @@ for var in /data/config/log/nginx/error.log /data/config/log/nginx/access.log /d
|
||||
ln -sf /proc/1/fd/1 "$var"
|
||||
done
|
||||
|
||||
# Check if issues with installation
|
||||
if [[ "$(occ)" == *"Composer autoloader not found"* ]]; then
|
||||
bashio::log.fatal "Issue with installation detected, reinstallation will proceed"
|
||||
if [ -f /data/config/www/nextcloud/index.php ]; then rm -r /data/config/www/nextcloud/index.php; fi
|
||||
bashio::addon.restart
|
||||
fi
|
||||
|
||||
# Add new log info to config.php
|
||||
#for var in /defaults/config.php /data/config/www/nextcloud/config/config.php; do
|
||||
# sed -i "/logfile/d" "$var"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Install specific packages
|
||||
if [ ! -d /data/config/www/nextcloud/apps/pdfannotate ]; then
|
||||
CURRENT="$PWD"
|
||||
cd /data/config/www/nextcloud/apps || exit
|
||||
cd /data/config/www/nextcloud/apps &>/dev/null || exit
|
||||
git clone https://gitlab.com/nextcloud-other/nextcloud-annotate pdfannotate
|
||||
cd "$CURRENT" || exit
|
||||
apk add --no-cache ghostscript >/dev/null
|
||||
|
||||
Reference in New Issue
Block a user