Skip to content

Commit a84c0ae

Browse files
committed
NEW | theme_billing.sh
1 parent ac9efff commit a84c0ae

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.assets/theme_billing.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
# Définir les couleurs
4+
GREEN=$(tput setaf 2)
5+
RED=$(tput setaf 1)
6+
BLUE=$(tput setaf 4)
7+
VIOLET=$(tput setaf 5)
8+
BOLD=$(tput bold)
9+
RESET=$(tput sgr0)
10+
########################################## INITIALISATION ROOT ##########################################
11+
12+
# Vérifier si l'utilisateur est root
13+
if [[ $EUID -ne 0 ]]; then
14+
echo "${RED}${BOLD}Ce script doit être exécuté en tant que root${RESET}"
15+
# Demander le mot de passe
16+
sudo "$0" "$@"
17+
exit 1
18+
fi
19+
20+
# Le reste du script ici

0 commit comments

Comments
 (0)