fix permissions for notify-push

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-11-16 16:49:03 +01:00
parent dee692f3e9
commit 42c721d4f0
2 changed files with 1 additions and 4 deletions

View file

@ -513,6 +513,7 @@ elif [ "$(php /var/www/html/occ config:app:get notify_push enabled)" != "yes" ];
elif [ "$SKIP_UPDATE" != 1 ]; then
php /var/www/html/occ app:update notify_push
fi
chmod 775 -R /nextcloud/custom_apps/notify_push/bin/
php /var/www/html/occ config:system:set trusted_proxies 0 --value="127.0.0.1"
php /var/www/html/occ config:system:set trusted_proxies 1 --value="::1"
php /var/www/html/occ config:app:set notify_push base_endpoint --value="https://$NC_DOMAIN/push"

View file

@ -46,10 +46,6 @@ fi
export DATABASE_URL="postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@$POSTGRES_HOST/$POSTGRES_DB"
export REDIS_URL="redis://:$REDIS_HOST_PASSWORD@$REDIS_HOST"
# Make the binary executable if possible
ls -l /nextcloud/custom_apps/notify_push/bin/"$CPU_ARCH"/notify_push
chmod +x /nextcloud/custom_apps/notify_push/bin/"$CPU_ARCH"/notify_push
# Run it
/nextcloud/custom_apps/notify_push/bin/"$CPU_ARCH"/notify_push \
--database-prefix="oc_" \