make dirs paths relative

This commit is contained in:
Alarig Le Lay 2019-01-21 11:10:45 +01:00
parent 7701a5ffb5
commit b8c91f737b
1 changed files with 2 additions and 2 deletions

View File

@ -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