Install earlyoom at gce instance startup

This commit is contained in:
Michael Vines
2018-09-08 10:38:32 -07:00
parent 9f413fd656
commit 9f5c86e60c
8 changed files with 127 additions and 79 deletions

19
net/scripts/install-rsync.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/bash -ex
#
# Rsync setup for Snap builds
#
[[ $(uname) = Linux ]] || exit 1
[[ $USER = root ]] || exit 1
apt-get --assume-yes install rsync
cat > /etc/rsyncd.conf <<-EOF
[config]
path = /var/snap/solana/current/config
hosts allow = *
read only = true
EOF
systemctl enable rsync
systemctl start rsync