apt commands no longer hardcoded, moved includes, main program improvement, some cleanup

This commit is contained in:
levasseur
2021-06-08 17:39:53 +02:00
parent 754dfa1934
commit ce4542cf99
8 changed files with 113 additions and 23 deletions

View File

@@ -0,0 +1,20 @@
# Configuration propre à Debian
# Conf gestionnaire de paquet
export PKG_MAN="apt-get"
export COM_INSTALL="install -y"
export COM_UPDATE="update"
export COM_UPGRADE="full-upgrade -y"
export COM_REMOVE="remove --purge -y"
export COM_AUTOREM="autoremove --purge -y"
# Conf chemin
export RC_SCRIPTS_PATH="/etc/init.d"
# Conf init
# Init SystemV ou OpenRC:
#export INIT_COM="/etc/init.d/%srv% %comm%"
# Init Systemd:
#export INIT_COM="systemctl %comm% %srv%"
# Init Upstart (plus ou moins universel)
export INIT_COM="service %srv% %comm%"