few fixes for aws linux support

This commit is contained in:
Serghey Rodin 2018-03-29 16:35:31 +03:00
commit 4ef7131065
2 changed files with 14 additions and 0 deletions

View file

@ -37,6 +37,10 @@ is_password_valid
echo "$user:$password" | /usr/sbin/chpasswd
md5=$(awk -v user=$user -F : 'user == $1 {print $2}' /etc/shadow)
if [ "$user" = 'admin' ] && [ -e "$VESTA/web/reset.admin" ]; then
rm -f $VESTA/web/reset.admin
fi
#----------------------------------------------------------#
# Vesta #