From 1db58a01603833eaa16e1b01dc0d258a96754b60 Mon Sep 17 00:00:00 2001 From: poka Date: Tue, 19 May 2020 17:28:20 +0200 Subject: [PATCH] [Nextcloud] Fix templates folder location --- .install/nextcloud/install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.install/nextcloud/install.sh b/.install/nextcloud/install.sh index 5461ff2..be8782c 100755 --- a/.install/nextcloud/install.sh +++ b/.install/nextcloud/install.sh @@ -28,6 +28,7 @@ fi ## Atroport config nc_domain=$(/home/$YOU/.zen/astroport/zen/tools/nodename) +templates="/home/$YOU/.zen/astroport/.install/nextcloud/templates" ## Set var [[ -z $nc_domain ]] && nc_domain=$1 @@ -38,8 +39,8 @@ db_pass_root="$(cat /dev/urandom | tr -dc 'a-zA-Z0-9~!@#$%^&*_-' | fold -w 32 | if [[ p2env == "true" ]]; then cd /nextcloud/templates/ else - [[ ! -e templates ]] && echo "Erreur: Le dossier templates n'existe pas, installation impossible." && exit 1 - cd templates + [[ ! -e $templates ]] && echo "Erreur: Le dossier templates n'existe pas, installation impossible." && exit 1 + cd $templates fi ## Set apt key and upgrade system