mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
15 lines
437 B
Bash
15 lines
437 B
Bash
#!/bin/bash
|
|
|
|
DEBIAN_FRONTEND=noninteractive
|
|
|
|
apt-get install -y lsyncd
|
|
mkdir /etc/lsyncd
|
|
|
|
# STOP. Generate a root ssh key on primary, and provide the public key to the root account on secondary in authorized_keys.
|
|
|
|
cp fs-primary/etc/lsyncd/lsyncd.conf.lua /etc/lsyncd/
|
|
# EDIT /etc/lsyncd/lsyncd.conf.lua
|
|
cp fs-primary/etc/logrotate.d/lsyncd /etc/logrotate.d/
|
|
|
|
service lsyncd start
|
|
#should already exist: sudo update-rc.d lsyncd defaults
|