date format update

master
vvzvlad 1 year ago
parent daa9dc4193
commit 68a13a620d

@ -2,7 +2,8 @@
echo $(hostname) > /mnt/data/etc/vestasync/hostname echo $(hostname) > /mnt/data/etc/vestasync/hostname
export GIT_AUTHOR_NAME="vestasync_wb_$(hostname)" export GIT_AUTHOR_NAME="vestasync_wb_$(hostname)"
export GIT_COMMITTER_NAME="vestasync_wb_$(hostname)" export GIT_COMMITTER_NAME="vestasync_wb_$(hostname)"
export LC_TIME=en_GB.UTF-8
cd /mnt/data/etc/ > /dev/null 2>&1 || true cd /mnt/data/etc/ > /dev/null 2>&1 || true
git add . > /dev/null 2>&1 || true git add . > /dev/null 2>&1 || true
git commit -m "$(date)" > /dev/null 2>&1 || true git commit -m "$(date +"%Y-%m-%d %H:%M:%S %z %Z")" > /dev/null 2>&1 || true
git push -u origin master > /dev/null 2>&1 || true git push -u origin master > /dev/null 2>&1 || true

@ -6,8 +6,9 @@ do
echo $(hostname) > /mnt/data/etc/vestasync/hostname echo $(hostname) > /mnt/data/etc/vestasync/hostname
export GIT_AUTHOR_NAME="vestasync_wb_$(hostname)_inotify" export GIT_AUTHOR_NAME="vestasync_wb_$(hostname)_inotify"
export GIT_COMMITTER_NAME="vestasync_wb_$(hostname)_inotify" export GIT_COMMITTER_NAME="vestasync_wb_$(hostname)_inotify"
export LC_TIME=en_GB.UTF-8
cd /mnt/data/etc/ cd /mnt/data/etc/
git add . git add .
git commit -m "$(date)" git commit -m "$(date +"%Y-%m-%d %H:%M:%S %z %Z")" # > /dev/null 2>&1 || true
git push -u origin master git push -u origin master
done done

Loading…
Cancel
Save