diff --git a/bin/ncp-provisioning.sh b/bin/ncp-provisioning.sh index 03679c2a1..1bbaf3e74 100644 --- a/bin/ncp-provisioning.sh +++ b/bin/ncp-provisioning.sh @@ -3,7 +3,7 @@ # this script runs at startup to provide an unique random passwords for each instance source /usr/local/etc/library.sh - +set -x ## redis provisioning CFG=/var/www/nextcloud/config/config.php diff --git a/install.sh b/install.sh index e72df3fa7..058029d14 100644 --- a/install.sh +++ b/install.sh @@ -35,10 +35,12 @@ apt-get install --no-install-recommends -y git ca-certificates sudo lsb-release # get install code if [[ "${CODE_DIR}" == "" ]]; then echo "Getting build code..." - CODE_DIR="${TEMPDIR}"/nextcloudpi - git clone -b "${BRANCH}" https://github.com/nextcloud/nextcloudpi.git "${CODE_DIR}" + CODE_DIR_TMP="${TEMPDIR}"/nextcloudpi + git clone -b "${BRANCH}" https://github.com/nextcloud/nextcloudpi.git "${CODE_DIR_TMP}" + cd "$CODE_DIR_TMP" +else + cd "${CODE_DIR}" fi -cd "${CODE_DIR}" # install NCP echo -e "\nInstalling NextCloudPi..."