add gitignore

This commit is contained in:
vvzvlad 2023-04-21 22:04:30 +07:00
parent 0f513261eb
commit 07a36364ed
2 changed files with 4 additions and 0 deletions

2
files/gitignore Normal file
View File

@ -0,0 +1,2 @@
wb-mqtt-mbgate.conf
wb-mqtt-opcua.conf

View File

@ -98,6 +98,8 @@ def create_repo(c):
def init_repo(c): def init_repo(c):
hostname = c.run('hostname', hide=True).stdout.strip() hostname = c.run('hostname', hide=True).stdout.strip()
c.run('cd /mnt/data/etc/ && git init') c.run('cd /mnt/data/etc/ && git init')
c.run('echo "wb-mqtt-mbgate.conf" > /mnt/data/etc/.gitignore')
c.run('echo "wb-mqtt-opcua.conf" >> /mnt/data/etc/.gitignore')
c.run(f'cd /mnt/data/etc/ && git remote add origin {args.vestasync_gitea_protocol}://{gitea_user}:{args.gitea_token}@{args.vestasync_gitea_host}:{args.vestasync_gitea_port}/{gitea_user}/{hostname}.git') c.run(f'cd /mnt/data/etc/ && git remote add origin {args.vestasync_gitea_protocol}://{gitea_user}:{args.gitea_token}@{args.vestasync_gitea_host}:{args.vestasync_gitea_port}/{gitea_user}/{hostname}.git')