PSMS in profile
This commit is contained in:
parent
04f36b73cf
commit
ce7ab33e0d
|
@ -3,10 +3,10 @@
|
|||
MY_PATH="`dirname \"$0\"`" # relative
|
||||
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
||||
|
||||
[[ -f $MY_PATH/../.profile ]] && source $MY_PATH/../.profile
|
||||
unset err
|
||||
|
||||
echo -e "${c_yellow}Choisissez un nom de domain pour playsms: $c_"
|
||||
read PSMS_DOMAIN
|
||||
[[ ! $PSMS_DOMAIN ]] && echo -e "${c_yellow}Choisissez un nom de domain pour playsms: $c_" && read PSMS_DOMAIN
|
||||
|
||||
sudo apt -y update
|
||||
if [[ $(grep buster /etc/os-release) ]]; then
|
||||
|
|
|
@ -4,4 +4,4 @@ ADMINPSEUDO=
|
|||
ADMINPHONE=
|
||||
MASTERPHONE=
|
||||
ADRESSE=
|
||||
PSMS=
|
||||
PSMS_DOMAIN=
|
||||
|
|
|
@ -8,6 +8,7 @@ MY_PATH="`dirname \"$0\"`" # relative
|
|||
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
||||
init_loc="$MY_PATH/shell/init.sh"
|
||||
now=$(date +%Y-%m-%d)
|
||||
[[ -f $MY_PATH/.profile ]] && source $MY_PATH/.profile
|
||||
|
||||
args="$@"
|
||||
[[ $args =~ all ]] && repOption=o
|
||||
|
@ -42,7 +43,6 @@ fi
|
|||
echo -e "${c_yellow}Ce script va désormais configurer votre noeud G1sms+$c_"
|
||||
YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1);
|
||||
|
||||
[[ -f .profile ]] && source .profile
|
||||
if [[ -f $MY_PATH/.install/templates/init.sh ]]; then
|
||||
[[ ! $ADMINPSEUDO ]] && echo -e "${c_light}Votre PSEUDO? (celui de votre Compte membre Duniter)$c_" && read ADMINPSEUDO
|
||||
[[ "$ADMINPSEUDO" == "" ]] && echo -e "${c_red}IMPOSSIBLE DE CONTINUER$c_" && exit 1
|
||||
|
|
Loading…
Reference in New Issue