Просмотр исходного кода

Remove cleanup routine and change path of deb_signing.key.

Raphael Schneeberger 7 лет назад
Родитель
Сommit
ca518c5401
2 измененных файлов с 4 добавлено и 24 удалено
  1. 2 12
      install/hst-install-debian.sh
  2. 2 12
      install/hst-install-ubuntu.sh

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

@@ -493,8 +493,8 @@ fi
 
 # Installing hestia repo
 echo "deb https://$RHOST/ $codename main" > $apt/hestia.list
-wget https://gpg.hestiacp.com/deb_signing.key -O deb_signing.key
-apt-key add deb_signing.key
+wget https://gpg.hestiacp.com/deb_signing.key -O /tmp/deb_signing.key
+apt-key add /tmp/deb_signing.key
 
 
 #----------------------------------------------------------#
@@ -1345,16 +1345,6 @@ fi
 source $hestiacp/phpmyadmin/pma.sh > /dev/null 2>&1
 
 
-#----------------------------------------------------------#
-#                     Clear Up Files                       #
-#----------------------------------------------------------#
-
-# Check and remove deb_signing.key
-if [ -f deb_signing.key ]; then
-    rm deb_signing.key
-fi
-
-
 #----------------------------------------------------------#
 #                   Configure Admin User                   #
 #----------------------------------------------------------#

+ 2 - 12
install/hst-install-ubuntu.sh

@@ -476,8 +476,8 @@ fi
 
 # Installing hestia repo
 echo "deb https://$RHOST/ $codename main" > $apt/hestia.list
-wget https://gpg.hestiacp.com/deb_signing.key -O deb_signing.key
-apt-key add deb_signing.key
+wget https://gpg.hestiacp.com/deb_signing.key -O /tmp/deb_signing.key
+apt-key add /tmp/deb_signing.key
 
 
 #----------------------------------------------------------#
@@ -1407,16 +1407,6 @@ chown admin:admin $HESTIA/data/sessions
 $HESTIA/bin/v-add-cron-hestia-autoupdate
 
 
-#----------------------------------------------------------#
-#                     Clear Up Files                       #
-#----------------------------------------------------------#
-
-# Check and remove deb_signing.key
-if [ -f deb_signing.key ]; then
-    rm deb_signing.key
-fi
-
-
 #----------------------------------------------------------#
 #                   Hestia Access Info                     #
 #----------------------------------------------------------#