finished main program, added no-root-check option
This commit is contained in:
15
init.sh
15
init.sh
@@ -66,6 +66,7 @@ read_commandline
|
||||
check_root
|
||||
|
||||
# Logfile variable treatment -- cannot be a function
|
||||
|
||||
export LOGFILE=${LOGFILE:-"$MYPATH/log/init-$(uname -n)-$(stdtime).log"}
|
||||
|
||||
prnt I "Création du répertoire d'accueil du fichier log..."
|
||||
@@ -96,12 +97,22 @@ done
|
||||
if [[ $CHECK_ONLY == true ]]; then
|
||||
prnt I "Mode de vérification seulement, on s'arrête là."
|
||||
exit 0
|
||||
else
|
||||
[[ $JUMP == true ]] && print I "Toutes les vérification ont été faites."
|
||||
echo
|
||||
echo "Appuyez sur CTLR + C maintenant si vous souhaitez interrompre."
|
||||
echo -e "${BYellow}Si vous continuez après cette étape le système sera modifié !${DEFAULTCOL}"
|
||||
echo
|
||||
read -n 1 -s -r -p "Appuyer sur n'importe quelle touche pour continuer..."
|
||||
fi
|
||||
|
||||
# We launch modules one after one
|
||||
for mod in $MODULE_LIST; do
|
||||
: # do everything
|
||||
# We need this only if JUMP is set but doesn't matter if it's done again
|
||||
. modules/$mod.sh
|
||||
version=VER_$mod
|
||||
prnt I "Application des modifications pour $mod version ${!version}..."
|
||||
$mod
|
||||
done
|
||||
|
||||
|
||||
prnt I "That's all folks !"
|
||||
|
||||
Reference in New Issue
Block a user