add some more messages to log

This commit is contained in:
6543 2018-05-21 12:07:47 +02:00
parent f6aa1b24fd
commit be32c02a81
1 changed files with 9 additions and 9 deletions

View File

@ -84,7 +84,7 @@ function main_renew() {


echo "log_file=\"$log_file\"" echo "log_file=\"$log_file\""
echo "log_mail_aim=\"$log_mail_aim\"" echo "log_mail_aim=\"$log_mail_aim\""
echo "log_mail_subject=\"$log_mail_subject\"" echo "log_mail_subject=\"$log_mail_subj >> "$log_file"ect\""
echo "" echo ""


echo "#Sonstiges" >> "$log_file" echo "#Sonstiges" >> "$log_file"
@ -100,10 +100,10 @@ function main_renew() {
echo $'### R U N ... ###\n' >> "$log_file" echo $'### R U N ... ###\n' >> "$log_file"


#1. Set and Check Enviroment #1. Set and Check Enviroment
check_user check_user >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


check_dependency check_dependency >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


check_config >> "$log_file" check_config >> "$log_file"
@ -114,7 +114,7 @@ function main_renew() {
[ "$project" != "" ] && project="_$project" [ "$project" != "" ] && project="_$project"


# 2. Entpacke ISO # 2. Entpacke ISO
iso_extract "$iso_source" "$iso_extr_dir" iso_extract "$iso_source" "$iso_extr_dir" >> "$log_file"


# 3. Entpacken der Dateien des Live-Systems # 3. Entpacken der Dateien des Live-Systems
filesystem_img="`find "$iso_extr_dir" -name filesystem.squashfs`" filesystem_img="`find "$iso_extr_dir" -name filesystem.squashfs`"
@ -255,12 +255,12 @@ function main_update_pxe() {
echo $'### R U N ... ###\n' >> "$log_file" echo $'### R U N ... ###\n' >> "$log_file"


#1. Set and Check Enviroment #1. Set and Check Enviroment
check_user check_user >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


check_update >> "$log_file" check_update >> "$log_file"


check_dependency check_dependency >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


check_config >> "$log_file" check_config >> "$log_file"
@ -380,12 +380,12 @@ function main_update_iso() {
echo $'### R U N ... ###\n' >> "$log_file" echo $'### R U N ... ###\n' >> "$log_file"


#1. Set and Check Enviroment #1. Set and Check Enviroment
check_user check_user >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


check_update >> "$log_file" check_update >> "$log_file"


check_dependency check_dependency >> "$log_file"
error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file" error_level="$?"; [ "$error_level" != "0" ] && on_exit $error_level >> "$log_file"


check_config >> "$log_file" check_config >> "$log_file"
@ -394,7 +394,7 @@ function main_update_iso() {
[ "$project" != "" ] && project="_$project" [ "$project" != "" ] && project="_$project"


# 2. Entpacke ISO # 2. Entpacke ISO
iso_extract "$iso_source" "$iso_extr_dir" iso_extract "$iso_source" "$iso_extr_dir" >> "$log_file"


# 3. Checke pxe version # 3. Checke pxe version
# if pxe is set # if pxe is set