From 5e72580c14ddaf8de871ec7f20b791bb723b6400 Mon Sep 17 00:00:00 2001 From: anto Date: Mon, 19 Feb 2024 15:41:47 +0100 Subject: [PATCH 1/2] script installation nextcloud V2 --- .../infra/antoine.demussy@ynov.com/install-nextcloud.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/adventure/infra/antoine.demussy@ynov.com/install-nextcloud.sh b/adventure/infra/antoine.demussy@ynov.com/install-nextcloud.sh index d6956c10..e9aa3c5a 100644 --- a/adventure/infra/antoine.demussy@ynov.com/install-nextcloud.sh +++ b/adventure/infra/antoine.demussy@ynov.com/install-nextcloud.sh @@ -8,9 +8,6 @@ # ############################################ - -#!/bin/bash - # Fonction pour afficher les messages d'erreur et quitter le script error_exit() { echo "$1" 1>&2 @@ -28,7 +25,7 @@ if ! command -v docker &> /dev/null; then fi # Répertoire où Nextcloud sera cloné -install_dir="/opt/nextcloud" +install_dir="/home/$USER/opt/nextcloud" # Cloner le dépôt Nextcloud depuis GitHub echo "Clonage du dépôt Nextcloud depuis GitHub..." From 0ce75a3fdbecf86c9a58d9e6443c7e81605c164e Mon Sep 17 00:00:00 2001 From: anto Date: Mon, 19 Feb 2024 15:45:25 +0100 Subject: [PATCH 2/2] script installation nextcloud V2 --- adventure/infra/antoine.demussy@ynov.com/install-nextcloud.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/adventure/infra/antoine.demussy@ynov.com/install-nextcloud.sh b/adventure/infra/antoine.demussy@ynov.com/install-nextcloud.sh index e9aa3c5a..5cc4b20e 100644 --- a/adventure/infra/antoine.demussy@ynov.com/install-nextcloud.sh +++ b/adventure/infra/antoine.demussy@ynov.com/install-nextcloud.sh @@ -25,6 +25,8 @@ if ! command -v docker &> /dev/null; then fi # Répertoire où Nextcloud sera cloné +mkdir="/home/$USER/opt" +mkdir="/home/$USER/opt/nextcloud" install_dir="/home/$USER/opt/nextcloud" # Cloner le dépôt Nextcloud depuis GitHub