Browse Source

Improve timestamp

Raphael Schneeberger 7 years ago
parent
commit
4b4b1cfbc6
2 changed files with 4 additions and 4 deletions
  1. 2 2
      install/hst-install-debian.sh
  2. 2 2
      install/hst-install-ubuntu.sh

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

@@ -11,9 +11,9 @@ RHOST='apt.hestiacp.com'
 GPG='gpg.hestiacp.com'
 VERSION='debian'
 HESTIA='/usr/local/hestia'
-LOG="/root/hst_install_backups/$(date +%s).log"
+LOG="/root/hst_install_backups/hst_install-$(date +%d%m%Y%H%M).log"
 memory=$(grep 'MemTotal' /proc/meminfo |tr ' ' '\n' |grep [0-9])
-hst_backups="/root/hst_install_backups/$(date +%s)"
+hst_backups="/root/hst_install_backups/$(date +%d%m%Y%H%M)"
 arch=$(uname -i)
 os='debian'
 release=$(cat /etc/debian_version|grep -o [0-9]|head -n1)

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

@@ -11,9 +11,9 @@ RHOST='apt.hestiacp.com'
 GPG='gpg.hestiacp.com'
 VERSION='ubuntu'
 HESTIA='/usr/local/hestia'
-LOG="/root/hst_install_backups/$(date +%s).log"
+LOG="/root/hst_install_backups/hst_install-$(date +%d%m%Y%H%M).log"
 memory=$(grep 'MemTotal' /proc/meminfo |tr ' ' '\n' |grep [0-9])
-hst_backups="/root/hst_install_backups/$(date +%s)"
+hst_backups="/root/hst_install_backups/$(date +%d%m%Y%H%M)"
 arch=$(uname -i)
 os='ubuntu'
 release="$(lsb_release -s -r)"