From b8c91f737b53824de121e8d01ab8e1d4b68ca5bf Mon Sep 17 00:00:00 2001 From: alarig Date: Mon, 21 Jan 2019 11:10:45 +0100 Subject: [PATCH] make dirs paths relative --- creationRoutesVM.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/creationRoutesVM.sh b/creationRoutesVM.sh index c217a73..09b2358 100755 --- a/creationRoutesVM.sh +++ b/creationRoutesVM.sh @@ -38,7 +38,7 @@ BOOL_V4=0 BOOL_V6=0 # Chemin fichier de LOG (et création du répertoire s'il n'existe pas) -LOG_PLACE='/root/vm_id_log/' +LOG_PLACE='./vm_id_log/' if [ ! -d "${LOG_PLACE}" ];then mkdir -p ${LOG_PLACE} echo "$(date -Isecond) - INFO : Creation du repertoire de logs vm_id" > ${LOG_PLACE}/$(date -Idate)_vm_id.log @@ -47,7 +47,7 @@ fi echo "$(date -Isecond) - INFO : Début de l'exécution du script d'ajout de routes VM" >> ${LOG_PLACE}/$(date -Idate)_vm_id.log # Chemin fichier de CACHE (et création du répertoire s'il n'existe pas) -CHEMIN_CACHE='/root/vm_id_cache/' +CHEMIN_CACHE='./vm_id_cache/' if [ ! -d "${CHEMIN_CACHE}" ];then mkdir -p ${CHEMIN_CACHE} echo "$(date -Isecond) - INFO : Creation du repertoire de cache vm_id" >> ${LOG_PLACE}/$(date -Idate)_vm_id.log