groupdel admin

This commit is contained in:
Serghey Rodin 2013-09-26 22:50:34 +03:00
commit 729b9d4ec9

View file

@ -609,9 +609,8 @@ if [ "$srv_type" = 'medium' ] || [ "$srv_type" = 'large' ]; then
service clamd start service clamd start
if [ "$?" -ne 0 ]; then if [ "$?" -ne 0 ]; then
echo "Error: clamd start failed" echo "Error: clamd start failed"
exit 1 exit 1
fi fi
fi fi
# SpamAssassin configuration # SpamAssassin configuration
@ -620,9 +619,8 @@ if [ "$srv_type" = 'medium' ] || [ "$srv_type" = 'large' ]; then
service spamassassin start service spamassassin start
if [ "$?" -ne 0 ]; then if [ "$?" -ne 0 ]; then
echo "Error: spamassassin start failed" echo "Error: spamassassin start failed"
exit 1 exit 1
fi fi
fi fi
# php configuration # php configuration
@ -719,6 +717,9 @@ if [ ! -z "$(grep ^admin: /etc/passwd)" ] && [ "$force" = 'yes' ]; then
mv -f /home/admin $vst_backups/home/ mv -f /home/admin $vst_backups/home/
rm -f /tmp/sess_* rm -f /tmp/sess_*
fi fi
if [ ! -z "$(grep ^admin: /etc/group)" ] && [ "$force" = 'yes' ]; then
groupdel admin > /dev/null 2>&1
fi
vpass=$(gen_pass) vpass=$(gen_pass)
$VESTA/bin/v-add-user admin $vpass $email default System Administrator $VESTA/bin/v-add-user admin $vpass $email default System Administrator
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then