Skip to content

Commit 1d7fb59

Browse files
committed
Change from vst to hst.
1 parent b37a035 commit 1d7fb59

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

install/hst-install-debian.sh

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ if [ -z "$email" ]; then
435435
fi
436436

437437
# Defining backup directory
438-
hst_backups="/root/vst_install_backups/$(date +%s)"
438+
hst_backups="/root/hst_install_backups/$(date +%s)"
439439
echo "Installation backup directory: $hst_backups"
440440

441441
# Printing start message and sleeping for 5 seconds
@@ -853,20 +853,20 @@ $HESTIA/bin/v-change-sys-hostname $servername 2>/dev/null
853853

854854
# Generating SSL certificate
855855
$HESTIA/bin/v-generate-ssl-cert $(hostname) $email 'US' 'California' \
856-
'San Francisco' 'Hestia Control Panel' 'IT' > /tmp/vst.pem
856+
'San Francisco' 'Hestia Control Panel' 'IT' > /tmp/hst.pem
857857

858858
# Parsing certificate file
859-
crt_end=$(grep -n "END CERTIFICATE-" /tmp/vst.pem |cut -f 1 -d:)
860-
key_start=$(grep -n "BEGIN RSA" /tmp/vst.pem |cut -f 1 -d:)
861-
key_end=$(grep -n "END RSA" /tmp/vst.pem |cut -f 1 -d:)
859+
crt_end=$(grep -n "END CERTIFICATE-" /tmp/hst.pem |cut -f 1 -d:)
860+
key_start=$(grep -n "BEGIN RSA" /tmp/hst.pem |cut -f 1 -d:)
861+
key_end=$(grep -n "END RSA" /tmp/hst.pem |cut -f 1 -d:)
862862

863863
# Adding SSL certificate
864864
cd $HESTIA/ssl
865-
sed -n "1,${crt_end}p" /tmp/vst.pem > certificate.crt
866-
sed -n "$key_start,${key_end}p" /tmp/vst.pem > certificate.key
865+
sed -n "1,${crt_end}p" /tmp/hst.pem > certificate.crt
866+
sed -n "$key_start,${key_end}p" /tmp/hst.pem > certificate.key
867867
chown root:mail $HESTIA/ssl/*
868868
chmod 660 $HESTIA/ssl/*
869-
rm /tmp/vst.pem
869+
rm /tmp/hst.pem
870870

871871

872872
#----------------------------------------------------------#
@@ -888,13 +888,13 @@ if [ "$nginx" = 'yes' ]; then
888888
update-rc.d php7.0-fpm defaults
889889
update-rc.d php7.1-fpm defaults
890890
update-rc.d php7.2-fpm defaults
891-
cp -r /etc/php/5.6/ /root/vst_install_backups/php5.6/
891+
cp -r /etc/php/5.6/ /root/hst_install_backups/php5.6/
892892
rm -f /etc/php/5.6/fpm/pool.d/*
893-
cp -r /etc/php/7.0/ /root/vst_install_backups/php7.0/
893+
cp -r /etc/php/7.0/ /root/hst_install_backups/php7.0/
894894
rm -f /etc/php/7.0/fpm/pool.d/*
895-
cp -r /etc/php/7.1/ /root/vst_install_backups/php7.1/
895+
cp -r /etc/php/7.1/ /root/hst_install_backups/php7.1/
896896
rm -f /etc/php/7.1/fpm/pool.d/*
897-
cp -r /etc/php/7.2/ /root/vst_install_backups/php7.2/
897+
cp -r /etc/php/7.2/ /root/hst_install_backups/php7.2/
898898
rm -f /etc/php/7.2/fpm/pool.d/*
899899
cp -f $hestiacp/multiphp/nginx/* $HESTIA/data/templates/web/nginx/
900900
chmod a+x $HESTIA/data/web/nginx/*.sh
@@ -940,13 +940,13 @@ if [ "$apache" = 'yes' ]; then
940940
update-rc.d php7.0-fpm defaults
941941
update-rc.d php7.1-fpm defaults
942942
update-rc.d php7.2-fpm defaults
943-
cp -r /etc/php/5.6/ /root/vst_install_backups/php5.6/
943+
cp -r /etc/php/5.6/ /root/hst_install_backups/php5.6/
944944
rm -f /etc/php/5.6/fpm/pool.d/*
945-
cp -r /etc/php/7.0/ /root/vst_install_backups/php7.0/
945+
cp -r /etc/php/7.0/ /root/hst_install_backups/php7.0/
946946
rm -f /etc/php/7.0/fpm/pool.d/*
947-
cp -r /etc/php/7.1/ /root/vst_install_backups/php7.1/
947+
cp -r /etc/php/7.1/ /root/hst_install_backups/php7.1/
948948
rm -f /etc/php/7.1/fpm/pool.d/*
949-
cp -r /etc/php/7.2/ /root/vst_install_backups/php7.2/
949+
cp -r /etc/php/7.2/ /root/hst_install_backups/php7.2/
950950
rm -f /etc/php/7.2/fpm/pool.d/*
951951
cp -f $hestiacp/multiphp/apache2/* $HESTIA/data/templates/web/apache2/
952952
chmod a+x $HESTIA/data/web/apache2/*.sh

0 commit comments

Comments
 (0)