Rework condition (and remove the 'from_script' flag)

This commit is contained in:
Alexandre Aubin 2018-05-21 00:46:48 +02:00
parent 2a4713f785
commit c0be9676e3

View file

@ -47,10 +47,10 @@ $LOGO
EOF EOF
) )
if [[ ! -f /etc/yunohost/installed ]] if [[ -f /etc/yunohost/installed ]]
then then
if [[ ! -f /etc/yunohost/from_script ]] echo "$LOGO_AND_FINGERPRINTS" > /etc/issue
then else
sleep 5 sleep 5
chvt 2 chvt 2
echo "$LOGO_AND_FINGERPRINTS" echo "$LOGO_AND_FINGERPRINTS"
@ -71,7 +71,4 @@ then
read -p "Retry? (y/n) " -n 1 read -p "Retry? (y/n) " -n 1
fi fi
done done
fi
else # YunoHost is already post-installed
echo "$LOGO_AND_FINGERPRINTS" > /etc/issue
fi fi