File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ VERSION='debian'
1313HESTIA=' /usr/local/hestia'
1414LOG=" /root/hst_install_backups/$( date +%s) .log"
1515memory=$( grep ' MemTotal' /proc/meminfo | tr ' ' ' \n' | grep [0-9])
16+ hst_backups=" /root/hst_install_backups/$( date +%s) "
1617arch=$( uname -i)
1718os=' debian'
1819release=$( cat /etc/debian_version| grep -o [0-9]| head -n1)
272273echo " Please wait a few seconds, we update your repository before we start the installation process..."
273274apt-get -qq update
274275
276+ # Creating backup directory
277+ mkdir -p $hst_backups
278+
275279# Checking wget
276280if [ ! -e ' /usr/bin/wget' ]; then
277281 echo " Install missing wget..."
@@ -465,8 +469,7 @@ if [ -z "$email" ]; then
465469 email=" admin@$servername "
466470fi
467471
468- # Defining backup directory
469- hst_backups=" /root/hst_install_backups/$( date +%s) "
472+ # Print backup directory
470473echo " Installation backup directory: $hst_backups "
471474
472475# Print Log File Path
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ VERSION='ubuntu'
1313HESTIA=' /usr/local/hestia'
1414LOG=" /root/hst_install_backups/$( date +%s) .log"
1515memory=$( grep ' MemTotal' /proc/meminfo | tr ' ' ' \n' | grep [0-9])
16+ hst_backups=" /root/hst_install_backups/$( date +%s) "
1617arch=$( uname -i)
1718os=' ubuntu'
1819release=" $( lsb_release -s -r) "
257258echo " Please wait a few seconds, we update your repository before we start the installation process..."
258259apt-get -qq update
259260
261+ # Creating backup directory
262+ mkdir -p $hst_backups
263+
260264# Checking wget
261265if [ ! -e ' /usr/bin/wget' ]; then
262266 echo " Install missing wget..."
@@ -437,7 +441,6 @@ if [ -z "$email" ]; then
437441fi
438442
439443# Defining backup directory
440- hst_backups=" /root/hst_install_backups/$( date +%s) "
441444echo " Installation backup directory: $hst_backups "
442445
443446# Print Log File Path
@@ -499,7 +502,6 @@ apt-key add /tmp/deb_signing.key >> $LOG
499502# ----------------------------------------------------------#
500503
501504# Creating backup directory tree
502- mkdir -p $hst_backups
503505cd $hst_backups
504506mkdir nginx apache2 php vsftpd proftpd bind exim4 dovecot clamd
505507mkdir spamassassin mysql postgresql hestia
You can’t perform that action at this time.
0 commit comments