Avoid abc user

This commit is contained in:
Alexandre
2023-03-31 22:05:08 +02:00
parent 0afbaa8163
commit 669bf55835
6 changed files with 35 additions and 25 deletions

View File

@@ -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')