From 07a36364eddd34f7f318f86ca78dad147165e132 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Fri, 21 Apr 2023 22:04:30 +0700 Subject: [PATCH] add gitignore --- files/gitignore | 2 ++ vestasync.py | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 files/gitignore diff --git a/files/gitignore b/files/gitignore new file mode 100644 index 0000000..d990d69 --- /dev/null +++ b/files/gitignore @@ -0,0 +1,2 @@ +wb-mqtt-mbgate.conf +wb-mqtt-opcua.conf diff --git a/vestasync.py b/vestasync.py index 660944d..e3243f0 100755 --- a/vestasync.py +++ b/vestasync.py @@ -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')