Skip to content

Commit

Permalink
some improvments to the install-script
Browse files Browse the repository at this point in the history
  • Loading branch information
unglaublicherdude committed Jun 10, 2024
1 parent 69c21de commit 3514288
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 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 -i 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 | grep "Nextcloud was successfully installed"
do
echo "Trying installation"
sleep 2
Expand All @@ -23,14 +23,12 @@ tar -xf ./build/artifacts/gdatavaas.tar.gz -C ./build/artifacts
docker cp ./build/artifacts/gdatavaas nextcloud-container:/var/www/html/apps/
docker exec -i nextcloud-container chown -R www-data:www-data /var/www/html/apps/gdatavaas

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

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

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
Expand Down

0 comments on commit 3514288

Please sign in to comment.