PSMS in profile

This commit is contained in:
poka 2019-12-10 19:24:20 +00:00
parent 04f36b73cf
commit ce7ab33e0d
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -4,4 +4,4 @@ ADMINPSEUDO=
ADMINPHONE=
MASTERPHONE=
ADRESSE=
PSMS=
PSMS_DOMAIN=

View File

@ -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