add gitignore

master
vvzvlad 1 year ago
parent 0f513261eb
commit 07a36364ed

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

@ -98,6 +98,8 @@ def create_repo(c):
def init_repo(c):
hostname = c.run('hostname', hide=True).stdout.strip()
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')

Loading…
Cancel
Save