Procházet zdrojové kódy

New version does not have iden module anymore

@myvesta for the fix
Jaap Marcus před 4 roky
rodič
revize
0f1749d7a3
1 změnil soubory, kde provedl 12 přidání a 1 odebrání
  1. 12 1
      install/hst-install-debian.sh

+ 12 - 1
install/hst-install-debian.sh

@@ -1412,10 +1412,21 @@ if [ "$proftpd" = 'yes' ]; then
     echo "127.0.0.1 $servername" >> /etc/hosts
     cp -f $HESTIA_INSTALL_DIR/proftpd/proftpd.conf /etc/proftpd/
     cp -f $HESTIA_INSTALL_DIR/proftpd/tls.conf /etc/proftpd/
-
+    
+    if [ "$release" -eq 11 ]; then 
+      sed -i 's|IdentLookups                  off|#IdentLookups                  off|g' /etc/proftpd/proftpd.conf
+    fi
+    
     update-rc.d proftpd defaults > /dev/null 2>&1
     systemctl start proftpd >> $LOG
     check_result $? "proftpd start failed"
+    
+    if [ "$release" -eq 11 ]; then
+     unit_files="$(systemctl list-unit-files |grep proftpd)"
+       if [[ "$unit_files" =~ "disabled" ]]; then
+           systemctl enable proftpd
+       fi
+    fi
 fi