[Script request]: nebula-sync #6291
Replies: 1 comment
-
|
Since I would suggest adding a prompt in the installation script asking if this container is the primary one and if sync is needed, and then just ask for the basic parameters required: With those, build an PRIMARY=http://${THIS_IP}|${PRIMARY_PASSW}
REPLICAS=http://${REPLICA1}|${PASSW1},http://${REPLICA2}|${PASSW2},...
FULL_SYNC=true
RUN_GRAVITY=true
CRON=${SYNC_FREQ} # The user could write the CRON on his own or we could give out a few choices
TZ=${TIMEZONE}We then download the latest binary, extract it (+ remove zip), make it executable, move it to For execution, we can create a simple service [Unit]
Description=Pi-hole Nebula Sync
After=network.target
[Service]
EnvironmentFile=/etc/nebula-sync.env
ExecStart=/usr/local/bin/nebula-sync run --env-file /etc/nebula-sync.env
Restart=on-failure
[Install]
WantedBy=multi-user.target
and we just start it: systemctl daemon-reload
systemctl enable nebula-sync
systemctl start nebula-syncIf the user wants to disable
During an update, we can blindly download the latest executable, or we can compare the latest GitHub release with the output of: nebula-sync -v
nebula-sync version v0.11.1 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Application Name
nebula-sync
Website
https://github.com/lovelaze/nebula-sync
Description
Nebula sync is use to sync configuration between two pihole to achive HA
https://github.com/lovelaze/nebula-sync
Due Diligence
Beta Was this translation helpful? Give feedback.
All reactions