mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 21:04:05 +02:00
Avoid abc user
This commit is contained in:
@@ -6,7 +6,9 @@
|
||||
if [ -f /notinstalled ]; then exit 0; fi
|
||||
|
||||
# Specify launcher
|
||||
LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ"
|
||||
PUID=$(bashio::config "PUID")
|
||||
PGID=$(bashio::config "PGID")
|
||||
LAUNCHER="sudo -u \#"$PUID" php /data/config/www/nextcloud/occ"
|
||||
|
||||
if $LAUNCHER fulltextsearch:test &>/dev/null; then
|
||||
echo "Full Text Search is already working"
|
||||
@@ -28,7 +30,7 @@ if $LAUNCHER fulltextsearch:test &>/dev/null; then
|
||||
$LAUNCHER app:install $app >/dev/null
|
||||
$LAUNCHER app:enable $app >/dev/null
|
||||
done
|
||||
chown -R abc:abc $NEXTCLOUD_PATH/apps
|
||||
chown -R "$PUID":"$PGID" $NEXTCLOUD_PATH/apps
|
||||
|
||||
if bashio::config.has_value 'elasticsearch_server'; then
|
||||
HOST=$(bashio::config 'elasticsearch_server')
|
||||
|
||||
Reference in New Issue
Block a user