mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 13:54:26 -07:00
new improved template scheme
This commit is contained in:
parent
14687f170a
commit
fd4e68bb8c
96 changed files with 1395 additions and 1425 deletions
|
@ -18,22 +18,15 @@ source $VESTA/func/main.sh
|
|||
# Action #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Vsftpd
|
||||
if [ "$FTP_SYSTEM" = 'vsftpd' ]; then
|
||||
/etc/init.d/vsftpd reload >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
/etc/init.d/vsftpd restart >/dev/null 2>&1
|
||||
if [ ! -z "$FTP_SYSTEM" ]; then
|
||||
/etc/init.d/$FTP_SYSTEM status >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
/etc/init.d/$FTP_SYSTEM reload >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
exit $E_RESTART
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# ProFTPD
|
||||
if [ "$FTP_SYSTEM" = 'proftpd' ]; then
|
||||
/etc/init.d/proftpd reload >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
/etc/init.d/proftpd restart >/dev/null 2>&1
|
||||
else
|
||||
/etc/init.d/$FTP_SYSTEM start >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
exit $E_RESTART
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue