From 0e222b2a3e1fe58b8c7122d9f399f64a9e627408 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Tue, 23 Jan 2024 02:42:56 -0600 Subject: [PATCH] set debug mode for script and remove deprecated cd --- jra_nextcloud.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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"