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