Skip to content

Commit 803b270

Browse files
committed
Included update installer / upgrade script
1 parent 62774d8 commit 803b270

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

install/hst-install-debian.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ cp /etc/vsftpd.conf $hst_backups/vsftpd > /dev/null 2>&1
681681

682682
# Backup ProFTPD configuration
683683
systemctl stop proftpd > /dev/null 2>&1
684-
cp /etc/proftpd.conf $hst_backups/proftpd > /dev/null 2>&1
684+
cp /etc/proftpd/* $hst_backups/proftpd > /dev/null 2>&1
685685

686686
# Backup Exim configuration
687687
systemctl stop exim4 > /dev/null 2>&1
@@ -1298,6 +1298,8 @@ if [ "$proftpd" = 'yes' ]; then
12981298
echo "[ * ] Configuring ProFTPD server..."
12991299
echo "127.0.0.1 $servername" >> /etc/hosts
13001300
cp -f $HESTIA_INSTALL_DIR/proftpd/proftpd.conf /etc/proftpd/
1301+
cp -f $HESTIA_INSTALL_DIR/proftpd/tls.conf /etc/proftpd/
1302+
13011303
update-rc.d proftpd defaults > /dev/null 2>&1
13021304
systemctl start proftpd >> $LOG
13031305
check_result $? "proftpd start failed"

install/hst-install-ubuntu.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ cp /etc/vsftpd.conf $hst_backups/vsftpd > /dev/null 2>&1
654654

655655
# Backup ProFTPD configuration
656656
systemctl stop proftpd > /dev/null 2>&1
657-
cp /etc/proftpd.conf $hst_backups/proftpd > /dev/null 2>&1
657+
cp /etc/proftpd/* $hst_backups/proftpd > /dev/null 2>&1
658658

659659
# Backup Exim configuration
660660
systemctl stop exim4 > /dev/null 2>&1
@@ -1339,6 +1339,7 @@ if [ "$proftpd" = 'yes' ]; then
13391339
echo "[ * ] Configuring ProFTPD server..."
13401340
echo "127.0.0.1 $servername" >> /etc/hosts
13411341
cp -f $HESTIA_INSTALL_DIR/proftpd/proftpd.conf /etc/proftpd/
1342+
cp -f $HESTIA_INSTALL_DIR/proftpd/tls.conf /etc/proftpd/
13421343
update-rc.d proftpd defaults > /dev/null 2>&1
13431344
systemctl start proftpd >> $LOG
13441345
check_result $? "proftpd start failed"

install/upgrade/versions/1.3.0.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,16 @@
55
#######################################################################################
66
####### Place additional commands below. #######
77
#######################################################################################
8+
9+
if [ "$FTP_SYSTEM" == "proftpd" ]; then
10+
if [ -e /etc/proftpd/proftpd.conf ]; then
11+
rm /etc/proftpd/proftpd.conf
12+
fi
13+
if [ -e /etc/proftpd/tlss.conf ]; then
14+
rm /etc/proftpd/tls.conf
15+
fi
16+
17+
cp -f $HESTIA_INSTALL_DIR/proftpd/proftpd.conf /etc/proftpd/
18+
cp -f $HESTIA_INSTALL_DIR/proftpd/tls.conf /etc/proftpd/
19+
20+
fi

0 commit comments

Comments
 (0)