1
0

ajout support sudo

This commit is contained in:
unfr 2025-05-15 10:02:43 +02:00
parent 7082d0ce7a
commit 48cf0af06f

View File

@ -192,7 +192,10 @@ chmod -R 755 "$AUTOPOST_DIR"
LISTE_APPLIS+=("$BIN_DIR/postauto")
source ~/.bashrc
# Définir le chemin du fichier bashrc
BASHRC_FILE="$HOME/.bashrc"
source $BASHRC_FILE
manquants=()
@ -209,9 +212,6 @@ else
echo -e "${VERT}Toutes les dépendances sont disponibles.${NORMAL}"
fi
# Définir le chemin du fichier bashrc
BASHRC_FILE="$HOME/.bashrc"
# Marqueurs pour identifier la section ajoutée
DEBUT_MARKER="# DEBUT COMPLETION POSTAUTO"
FIN_MARKER="# FIN COMPLETION POSTAUTO"
@ -266,12 +266,6 @@ log() {
echo -e "\033[1;32m$1\033[0m"
}
# Définition du répertoire AUTOPOST_DIR (ajuster si nécessaire)
AUTOPOST_DIR="$HOME/autopost"
# Création du dossier si inexistant
mkdir -p "$AUTOPOST_DIR"
# Définir le répertoire NVM
export NVM_DIR="$HOME/.nvm"