forked from coop-cloud/nextcloud
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:
parent
20f0a45baf
commit
992992d678
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue