Skip to content

Commit

Permalink
remove the tty flag
Browse files Browse the repository at this point in the history
  • Loading branch information
unglaublicherdude committed Jun 6, 2024
1 parent 8944b6c commit 1d766a4
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ docker stop nextcloud-container || echo "No container to stop"
sleep 1
docker run -d --name nextcloud-container --rm --publish 80:80 nextcloud:28

until docker exec --user www-data -it nextcloud-container php occ maintenance:install --admin-user=admin --admin-pass=admin >/dev/null
until docker exec --user www-data -i nextcloud-container php occ maintenance:install --admin-user=admin --admin-pass=admin >/dev/null
do
echo "Trying installation"
sleep 2
Expand All @@ -21,24 +21,24 @@ make build
make appstore
tar -xf ./build/artifacts/gdatavaas.tar.gz -C ./build/artifacts
docker cp ./build/artifacts/gdatavaas nextcloud-container:/var/www/html/apps/
docker exec -it nextcloud-container chown -R www-data:www-data /var/www/html/apps/gdatavaas
docker exec -i nextcloud-container chown -R www-data:www-data /var/www/html/apps/gdatavaas

until docker exec --user www-data -it nextcloud-container php occ app:update --all
until docker exec --user www-data -i nextcloud-container php occ app:update --all
do
echo "Trying app update"
sleep 2
done

docker exec --user www-data -it nextcloud-container php occ app:enable gdatavaas
docker exec --user www-data -i nextcloud-container php occ app:enable gdatavaas

docker exec --user www-data -it nextcloud-container php occ config:app:set gdatavaas clientId --value="$CLIENT_ID"
docker exec --user www-data -it nextcloud-container php occ config:app:set gdatavaas clientSecret --value="$CLIENT_SECRET"
docker exec --user www-data -it nextcloud-container php occ config:app:set gdatavaas authMethod --value=ClientCredentials
docker exec --user www-data -it nextcloud-container php occ config:app:set gdatavaas autoScanFiles --value=true
docker exec --user www-data -it nextcloud-container php occ config:app:set gdatavaas scanQueueLength --value=100
docker exec --user www-data -i nextcloud-container php occ config:app:set gdatavaas clientId --value="$CLIENT_ID"
docker exec --user www-data -i nextcloud-container php occ config:app:set gdatavaas clientSecret --value="$CLIENT_SECRET"
docker exec --user www-data -i nextcloud-container php occ config:app:set gdatavaas authMethod --value=ClientCredentials
docker exec --user www-data -i nextcloud-container php occ config:app:set gdatavaas autoScanFiles --value=true
docker exec --user www-data -i nextcloud-container php occ config:app:set gdatavaas scanQueueLength --value=100

docker exec --user www-data -it nextcloud-container php occ log:manage --level DEBUG
docker exec --user www-data -it nextcloud-container php occ app:disable firstrunwizard
docker exec --user www-data -i nextcloud-container php occ log:manage --level DEBUG
docker exec --user www-data -i nextcloud-container php occ app:disable firstrunwizard

source install.local || echo "No additional install script found."
# docker exec --user www-data -it nextcloud-container php cron.php
# docker exec --user www-data -i nextcloud-container php cron.php

0 comments on commit 1d766a4

Please sign in to comment.