mirror of
https://codeberg.org/oliphant/blocklists.git
synced 2024-11-23 12:21:00 +00:00
18 lines
370 B
Bash
Executable file
18 lines
370 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
# generate files
|
|
#exec > >(tee /opt/fediblockhole/logs/fedisync.log) 2>&1
|
|
exec 2> >(tee /opt/fediblockhole/logs/fedisync-git.log)
|
|
echo "Pushing up git changes..."
|
|
|
|
cd /opt/fediblockhole
|
|
|
|
date=$(date '+%Y-%m-%d %H:%M:%S')
|
|
|
|
GIT=`which git`
|
|
${GIT} add --all
|
|
${GIT} commit -m "automated commit on $date"
|
|
${GIT} push
|
|
#${GIT} pushall
|
|
|
|
echo "Push complete."
|