mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
groupdel admin
This commit is contained in:
parent
7b03aac587
commit
729b9d4ec9
1 changed files with 7 additions and 6 deletions
|
@ -609,9 +609,8 @@ if [ "$srv_type" = 'medium' ] || [ "$srv_type" = 'large' ]; then
|
|||
service clamd start
|
||||
if [ "$?" -ne 0 ]; then
|
||||
echo "Error: clamd start failed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# SpamAssassin configuration
|
||||
|
@ -620,9 +619,8 @@ if [ "$srv_type" = 'medium' ] || [ "$srv_type" = 'large' ]; then
|
|||
service spamassassin start
|
||||
if [ "$?" -ne 0 ]; then
|
||||
echo "Error: spamassassin start failed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# php configuration
|
||||
|
@ -719,6 +717,9 @@ if [ ! -z "$(grep ^admin: /etc/passwd)" ] && [ "$force" = 'yes' ]; then
|
|||
mv -f /home/admin $vst_backups/home/
|
||||
rm -f /tmp/sess_*
|
||||
fi
|
||||
if [ ! -z "$(grep ^admin: /etc/group)" ] && [ "$force" = 'yes' ]; then
|
||||
groupdel admin > /dev/null 2>&1
|
||||
fi
|
||||
vpass=$(gen_pass)
|
||||
$VESTA/bin/v-add-user admin $vpass $email default System Administrator
|
||||
if [ $? -ne 0 ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue