update :
This commit is contained in:
parent
c3576e785b
commit
ed57a57fe2
@ -59,6 +59,11 @@ log_message() {
|
|||||||
echo -e "${GREEN}[$LEVEL]${NC} $MESSAGE"
|
echo -e "${GREEN}[$LEVEL]${NC} $MESSAGE"
|
||||||
echo
|
echo
|
||||||
;;
|
;;
|
||||||
|
"SERVICE")
|
||||||
|
echo ""
|
||||||
|
echo -e "${CYAN}[$LEVEL]${NC} $MESSAGE"
|
||||||
|
echo
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "[$LEVEL] $MESSAGE"
|
echo "[$LEVEL] $MESSAGE"
|
||||||
;;
|
;;
|
||||||
@ -161,7 +166,7 @@ is_package_installed() {
|
|||||||
service() {
|
service() {
|
||||||
systemctl $1 $2 || handle_error "test"
|
systemctl $1 $2 || handle_error "test"
|
||||||
|
|
||||||
log_message "SUCCESS" "Action : $1 for service : $2 successfully"
|
log_message "SERVICE" "Action : $1 for service : $2 successfully"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Fonction pour la gestion des erreurs
|
# Fonction pour la gestion des erreurs
|
||||||
|
@ -0,0 +1,2 @@
|
|||||||
|
#
|
||||||
|
ssh-rsa AAAAB3NzaC1yc2EAAAADAQA
|
Loading…
x
Reference in New Issue
Block a user