mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-18 14:51:50 +02:00
Improved code
This commit is contained in:
@@ -1,11 +1,18 @@
|
|||||||
|
- Improve : status check code
|
||||||
|
- Fix : reinstallation code
|
||||||
|
|
||||||
## 26.0.0 (24-03-2023)
|
## 26.0.0 (24-03-2023)
|
||||||
|
|
||||||
- Update to latest version from linuxserver/docker-nextcloud
|
- Update to latest version from linuxserver/docker-nextcloud
|
||||||
- auto_update boolean option : automatically updates the nextcloud instance with the container version
|
- auto_update boolean option : automatically updates the nextcloud instance with the container version
|
||||||
|
|
||||||
### 25.0.5-14 (23-03-2023)
|
### 25.0.5-14 (23-03-2023)
|
||||||
|
|
||||||
- Minor bugs fixed
|
- Minor bugs fixed
|
||||||
- Revert version number to align with container
|
- Revert version number to align with container
|
||||||
|
|
||||||
### 25.0.4-11 (22-03-2023)
|
### 25.0.4-11 (22-03-2023)
|
||||||
|
|
||||||
- Minor bugs fixed
|
- Minor bugs fixed
|
||||||
- Implemented safety check that reinstalls nextcloud if issue detected https://github.com/alexbelgium/hassio-addons/issues/764
|
- Implemented safety check that reinstalls nextcloud if issue detected https://github.com/alexbelgium/hassio-addons/issues/764
|
||||||
- Implemented healthcheck
|
- Implemented healthcheck
|
||||||
|
|||||||
@@ -28,6 +28,11 @@ done
|
|||||||
# CHECK STATUS #
|
# CHECK STATUS #
|
||||||
################
|
################
|
||||||
|
|
||||||
|
# Clean remnant files
|
||||||
|
if [ -f /notinstalled ]; then
|
||||||
|
rm /notinstalled
|
||||||
|
fi
|
||||||
|
|
||||||
# Get launcher
|
# Get launcher
|
||||||
LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ"
|
LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ"
|
||||||
if [ ! -f /data/config/www/nextcloud/occ ]; then
|
if [ ! -f /data/config/www/nextcloud/occ ]; then
|
||||||
@@ -47,6 +52,7 @@ if [[ $($LAUNCHER -V 2>&1) == *"not installed"* ]] || [ ! -f /data/config/www/ne
|
|||||||
bashio::log.yellow "Nextcloud not installed, please wait for addon startup, login Webui, install Nextcloud, then restart the addon"
|
bashio::log.yellow "Nextcloud not installed, please wait for addon startup, login Webui, install Nextcloud, then restart the addon"
|
||||||
bashio::log.green "--------------------------------------------------------------------------------------------------------------"
|
bashio::log.green "--------------------------------------------------------------------------------------------------------------"
|
||||||
bashio::log.green " "
|
bashio::log.green " "
|
||||||
|
touch /notinstalled
|
||||||
exit 0
|
exit 0
|
||||||
elif [[ $($LAUNCHER -V 2>&1) == *"Nextcloud"* ]]; then
|
elif [[ $($LAUNCHER -V 2>&1) == *"Nextcloud"* ]]; then
|
||||||
# Log
|
# Log
|
||||||
|
|||||||
@@ -1,16 +1,11 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ" || bashio::log.info "/data/config/www/nextcloud/occ not found"
|
# Only execute if installed
|
||||||
if ! bashio::fs.file_exists '/data/config/www/nextcloud/occ'; then
|
if [ -f /notinstalled ]; then exit 0; fi
|
||||||
LAUNCHER=$(find / -name "occ" -print -quit)
|
|
||||||
fi || bashio::log.info "occ not found"
|
|
||||||
|
|
||||||
# Make sure there is an Nextcloud installation
|
# Specify launcher
|
||||||
if [[ $($LAUNCHER -V 2>&1) == *"not installed"* ]]; then
|
LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ"
|
||||||
echo "... please install first Nextcloud through the webui"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Install specific packages
|
# Install specific packages
|
||||||
if [ ! -d /data/config/www/nextcloud/apps/pdfannotate ]; then
|
if [ ! -d /data/config/www/nextcloud/apps/pdfannotate ]; then
|
||||||
|
|||||||
@@ -2,16 +2,11 @@
|
|||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
|
|
||||||
LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ" || bashio::log.info "/data/config/www/nextcloud/occ not found"
|
# Only execute if installed
|
||||||
if ! bashio::fs.file_exists '/data/config/www/nextcloud/occ'; then
|
if [ -f /notinstalled ]; then exit 0; fi
|
||||||
LAUNCHER=$(find / -name "occ" -print -quit)
|
|
||||||
fi || bashio::log.info "occ not found"
|
|
||||||
|
|
||||||
# Make sure there is an Nextcloud installation
|
# Specify launcher
|
||||||
if [[ $($LAUNCHER -V 2>&1) == *"not installed"* ]]; then
|
LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ"
|
||||||
echo "... please install first Nextcloud through the webui"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if $LAUNCHER fulltextsearch:test &>/dev/null; then
|
if $LAUNCHER fulltextsearch:test &>/dev/null; then
|
||||||
echo "Full Text Search is already working"
|
echo "Full Text Search is already working"
|
||||||
|
|||||||
@@ -1,16 +1,11 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ" || bashio::log.info "/data/config/www/nextcloud/occ not found"
|
# Only execute if installed
|
||||||
if ! bashio::fs.file_exists '/data/config/www/nextcloud/occ'; then
|
if [ -f /notinstalled ]; then exit 0; fi
|
||||||
LAUNCHER=$(find / -name "occ" -print -quit)
|
|
||||||
fi || bashio::log.info "occ not found"
|
|
||||||
|
|
||||||
# Make sure there is an Nextcloud installation
|
# Specify launcher
|
||||||
if [[ $($LAUNCHER -V 2>&1) == *"not installed"* ]]; then
|
LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ"
|
||||||
echo "... please install first Nextcloud through the webui"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Install OCR if requested
|
# Install OCR if requested
|
||||||
if [ "$(bashio::config 'OCR')" = "true" ]; then
|
if [ "$(bashio::config 'OCR')" = "true" ]; then
|
||||||
|
|||||||
@@ -1,16 +1,11 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ" || bashio::log.info "/data/config/www/nextcloud/occ not found"
|
# Only execute if installed
|
||||||
if ! bashio::fs.file_exists '/data/config/www/nextcloud/occ'; then
|
if [ -f /notinstalled ]; then exit 0; fi
|
||||||
LAUNCHER=$(find / -name "occ" -print -quit)
|
|
||||||
fi || bashio::log.info "occ not found"
|
|
||||||
|
|
||||||
# Make sure there is an Nextcloud installation
|
# Specify launcher
|
||||||
if [[ $($LAUNCHER -V 2>&1) == *"not installed"* ]]; then
|
LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ"
|
||||||
echo "... please install first Nextcloud through the webui"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# Initialization #
|
# Initialization #
|
||||||
|
|||||||
Reference in New Issue
Block a user