diff --git a/jra_nextcloud.sh b/jra_nextcloud.sh index b3e73e9..e789344 100644 --- a/jra_nextcloud.sh +++ b/jra_nextcloud.sh @@ -180,7 +180,12 @@ install_ifnot postgresql-"$PSGVER" #-------------------------------------------------- # Prepare PHP #-------------------------------------------------- -bash tools/prepare_php.sh "$MIN_PHP" + +if [ "$MODE" = "debug" ]; then + bash -x "$PWD"/tools/prepare_php.sh "$MIN_PHP" +else + bash "$PWD"/tools/prepare_php.sh "$MIN_PHP" +fi #-------------------------------------------------- # Create DB user @@ -298,7 +303,6 @@ echo -e "\nAdding trusted domain...\n" sudo -u www-data php$MIN_PHP "$NC_PATH"/occ config:system:set trusted_domains 0 --value="$NC_DOMAIN" echo -e "\nSetting JRA domain on jitsi-updater.sh\n" -cd ~/quick-jibri-installer || return sed -i "s|NC_DOMAIN=.*|NC_DOMAIN=\"$NC_DOMAIN\"|" jitsi-updater.sh echo -e "\nQuick Nextcloud installation complete!\n"