ajout support sudo
This commit is contained in:
parent
7082d0ce7a
commit
48cf0af06f
14
install.sh
14
install.sh
@ -192,7 +192,10 @@ chmod -R 755 "$AUTOPOST_DIR"
|
|||||||
|
|
||||||
LISTE_APPLIS+=("$BIN_DIR/postauto")
|
LISTE_APPLIS+=("$BIN_DIR/postauto")
|
||||||
|
|
||||||
source ~/.bashrc
|
# Définir le chemin du fichier bashrc
|
||||||
|
BASHRC_FILE="$HOME/.bashrc"
|
||||||
|
|
||||||
|
source $BASHRC_FILE
|
||||||
|
|
||||||
manquants=()
|
manquants=()
|
||||||
|
|
||||||
@ -209,9 +212,6 @@ else
|
|||||||
echo -e "${VERT}Toutes les dépendances sont disponibles.${NORMAL}"
|
echo -e "${VERT}Toutes les dépendances sont disponibles.${NORMAL}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Définir le chemin du fichier bashrc
|
|
||||||
BASHRC_FILE="$HOME/.bashrc"
|
|
||||||
|
|
||||||
# Marqueurs pour identifier la section ajoutée
|
# Marqueurs pour identifier la section ajoutée
|
||||||
DEBUT_MARKER="# DEBUT COMPLETION POSTAUTO"
|
DEBUT_MARKER="# DEBUT COMPLETION POSTAUTO"
|
||||||
FIN_MARKER="# FIN COMPLETION POSTAUTO"
|
FIN_MARKER="# FIN COMPLETION POSTAUTO"
|
||||||
@ -266,12 +266,6 @@ log() {
|
|||||||
echo -e "\033[1;32m$1\033[0m"
|
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
|
# Définir le répertoire NVM
|
||||||
export NVM_DIR="$HOME/.nvm"
|
export NVM_DIR="$HOME/.nvm"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user