Revert "Automatically install apps specified via env variable." for entrypoint.sh.tmpl

This reverts commit 20f0a45baf for entrypoint.sh.tmpl
This commit is contained in:
Moritz 2022-11-08 15:41:37 +01:00
parent 20f0a45baf
commit 992992d678
1 changed files with 0 additions and 21 deletions

View File

@ -9,25 +9,4 @@ if ! [[ $(grep {{ env "X_FRAME_OPTIONS_ALLOW_FROM" }} lib/public/AppFramework/Ht
fi
{{ end }}
run_occ(){
su -p www-data -s /bin/sh -c "/var/www/html/occ $@"
}
if [ ! -f /var/www/html/version.php ]
then
# Install nextcloud, without executing php-fpm
sed 's/exec "$@"/#exec "$@"/' -i /entrypoint.sh
/entrypoint.sh php-fpm
sed 's/#exec "$@"/exec "$@"/' -i /entrypoint.sh
fi
installed=$(run_occ status | grep installed | grep true)
if [[ -n $installed ]]
then
for app in $APPS
do
run_occ "app:install $app"
done
fi
/entrypoint.sh php-fpm