echo for backup wait

This commit is contained in:
dpeca 2018-09-10 01:18:37 +02:00 committed by GitHub
commit b4bb0bb5e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,6 +44,8 @@ if pgrep -x "v-backup-users" > /dev/null
then then
hour=$(date +"%H"); hour=$(date +"%H");
while [ "$hour" -gt "6" ]; do while [ "$hour" -gt "6" ]; do
current_date_time="`date "+%Y-%m-%d %H:%M:%S"`";
echo "$current_date_time - wait for backup user $user";
sleep 300 sleep 300
done done
fi fi