fix GIT_AUTHOR_NAME

This commit is contained in:
vvzvlad 2023-04-16 23:02:54 +07:00
parent 84c1bc637f
commit 840a5d97b0
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,6 @@
#!/usr/bin/env sh
export GIT_AUTHOR_NAME="vestasync_wb_$(hostname)"
export GIT_COMMITTER_NAME="vestasync_wb_$(hostname)"
cd /mnt/data/etc/ > /dev/null 2>&1 || true
git add . > /dev/null 2>&1 || true
git commit -m "$(date)" > /dev/null 2>&1 || true

View File

@ -70,8 +70,7 @@ def prepare_packages_wb(c):
def configure_git(c):
hostname = c.run('hostname', hide=True).stdout.strip()
c.run(f'git config --global user.name vestasync_wb_{hostname}')
c.run(f'git config --global user.name vestasync_wb_$(hostname)_manual')
c.run(f'git config --global user.email "vestasync@fake.mail"')
c.run(f'git config --global init.defaultBranch "master"')