mirror of
https://github.com/vvzvlad/vestasync.git
synced 2024-12-26 20:21:00 +03:00
add gitignore
This commit is contained in:
parent
0f513261eb
commit
07a36364ed
2
files/gitignore
Normal file
2
files/gitignore
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
wb-mqtt-mbgate.conf
|
||||||
|
wb-mqtt-opcua.conf
|
@ -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')
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user