"MaJ install.sh: Suppression ancien socle avant installation"
This commit is contained in:
parent
ab905b4a9e
commit
fac9481d57
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#------------------------------------------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------------------------------------------
|
||||||
# Script : expl_check_all_nrpe.sh
|
# Script : ctl_all_nrpe.sh
|
||||||
# Auteur : Doug Le Tough
|
# Auteur : Doug Le Tough
|
||||||
# Date : 23-07-2017
|
# Date : 23-07-2017
|
||||||
# Version : 1.0.0
|
# Version : 1.0.0
|
||||||
@ -47,10 +47,10 @@
|
|||||||
## Syntaxe :
|
## Syntaxe :
|
||||||
## --------
|
## --------
|
||||||
##
|
##
|
||||||
## prompt> expl_check_all_nrpe.sh
|
## prompt> ctl_all_nrpe.sh
|
||||||
##
|
##
|
||||||
## ex:
|
## ex:
|
||||||
## expl_check_all_nrpe.sh
|
## ctl_all_nrpe.sh
|
||||||
##
|
##
|
||||||
## Prérequis:
|
## Prérequis:
|
||||||
## ----------
|
## ----------
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#------------------------------------------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------------------------------------------
|
||||||
# Script : expl_check_all_nrpe.sh
|
# Script : ctl_host_process.sh
|
||||||
# Auteur : Doug Le Tough
|
# Auteur : Doug Le Tough
|
||||||
# Date : 23-07-2017
|
# Date : 23-07-2017
|
||||||
# Version : 1.0.0
|
# Version : 1.0.0
|
||||||
@ -47,7 +47,7 @@
|
|||||||
## Syntaxe :
|
## Syntaxe :
|
||||||
## --------
|
## --------
|
||||||
##
|
##
|
||||||
## prompt> expl_check_all_nrpe.sh
|
## prompt> ctl_all_nrpe.sh
|
||||||
##
|
##
|
||||||
## ex:
|
## ex:
|
||||||
## expl_check_all_nrpe.sh
|
## expl_check_all_nrpe.sh
|
@ -50,13 +50,18 @@ fi
|
|||||||
source ${PKG_INSTALL_CONF}
|
source ${PKG_INSTALL_CONF}
|
||||||
source ${PKG_SOCLE_INIT_CONF} 2>/dev/null
|
source ${PKG_SOCLE_INIT_CONF} 2>/dev/null
|
||||||
|
|
||||||
|
echo -e "\033[93mSuppression de l'installation antérieure du socle Bash\033[0m"
|
||||||
|
sudo rm -Rf ${NC_EXPL_ROOT}
|
||||||
|
RET_VAL=$?
|
||||||
|
if [ ! ${RET_VAL} -eq 0 ]; then
|
||||||
|
exit_on_error "Erreur lors de la suppression du répertoire ${NC_EXPL_ROOT}"
|
||||||
|
fi
|
||||||
echo -e "\033[93mInstallation du socle Bash:\033[0m"
|
echo -e "\033[93mInstallation du socle Bash:\033[0m"
|
||||||
echo -e "\033[93m * Répertoire racine: ${NC_EXPL_ROOT}\033[0m"
|
echo -e "\033[93m * Répertoire racine: ${NC_EXPL_ROOT}\033[0m"
|
||||||
echo -e "\033[93m * Création des répertoires:\033[0m"
|
echo -e "\033[93m * Création des répertoires:\033[0m"
|
||||||
|
|
||||||
# Création des répertoires de destination
|
# Création des répertoires de destination
|
||||||
for DIR in $NC_EXPL_LIB $NC_EXPL_BIN $NC_EXPL_LOG $NC_EXPL_HST $NC_EXPL_CPT $NC_EXPL_TMP $NC_EXPL_DAT $NC_EXPL_MOD $NC_EXPL_CFG $NC_EXPL_MSG $NC_EXPL_MAN;
|
for DIR in ${NC_EXPL_LIB} ${NC_EXPL_BIN} ${NC_EXPL_LOG} ${NC_EXPL_HST} ${NC_EXPL_CPT} ${NC_EXPL_TMP} ${NC_EXPL_DAT} ${NC_EXPL_MOD} ${NC_EXPL_CFG} ${NC_EXPL_MSG} ${NC_EXPL_MAN};
|
||||||
do
|
do
|
||||||
echo -en " * ${DIR} "
|
echo -en " * ${DIR} "
|
||||||
sudo mkdir -p ${DIR};
|
sudo mkdir -p ${DIR};
|
||||||
|
Loading…
Reference in New Issue
Block a user