Daniel Gibbs пре 10 година
родитељ
комит
03169f1fb0
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      lgsm/functions/command_backup.sh

+ 3 - 3
lgsm/functions/command_backup.sh

@@ -27,7 +27,7 @@ echo ""
 check_status.sh
 check_status.sh
 if [ "${status}" != "0" ]; then
 if [ "${status}" != "0" ]; then
 	echo ""
 	echo ""
-	fn_printwarningnl "${servicename} is currently running."
+	fn_print_warning_nl "${servicename} is currently running."
 	sleep 1
 	sleep 1
 	while true; do
 	while true; do
 		read -p "Stop ${servicename} while running the backup? [y/N]" yn
 		read -p "Stop ${servicename} while running the backup? [y/N]" yn
@@ -39,13 +39,13 @@ if [ "${status}" != "0" ]; then
 	done
 	done
 fi
 fi
 fn_scriptlog "Started backup"
 fn_scriptlog "Started backup"
-fn_printdots "Backup in progress, please wait..."
+fn_print_dots "Backup in progress, please wait..."
 sleep 2
 sleep 2
 if [ ! -d "${backupdir}" ]; then
 if [ ! -d "${backupdir}" ]; then
 	mkdir "${backupdir}"
 	mkdir "${backupdir}"
 fi
 fi
 tar -czf "${backupdir}/${backupname}.tar.gz" -C "${rootdir}" --exclude "backups" ./*
 tar -czf "${backupdir}/${backupname}.tar.gz" -C "${rootdir}" --exclude "backups" ./*
-fn_printoknl "Backup created: ${backupname}.tar.gz is $(du -sh "${backupdir}/${backupname}.tar.gz" | awk '{print $1}') size"
+fn_print_ok_nl "Backup created: ${backupname}.tar.gz is $(du -sh "${backupdir}/${backupname}.tar.gz" | awk '{print $1}') size"
 fn_scriptlog "Complete, Backup created: ${backupdir}/${backupname}.tar.gz is $(du -sh "${backupdir}/${backupname}.tar.gz" | awk '{print $1}') size"
 fn_scriptlog "Complete, Backup created: ${backupdir}/${backupname}.tar.gz is $(du -sh "${backupdir}/${backupname}.tar.gz" | awk '{print $1}') size"
 sleep 1
 sleep 1
 echo ""
 echo ""