Files
solana/net/remote/remote-startup.sh

21 lines
488 B
Bash
Raw Normal View History

2018-09-04 08:34:39 -07:00
#!/bin/bash
#
# Runs at boot on each instance as root
#
# TODO: Make the following a requirement of the Instance image
# instead of a manual install?
systemctl disable apt-daily.service # disable run when system boot
systemctl disable apt-daily.timer # disable timer run
apt-get --assume-yes install rsync libssl-dev
2018-09-04 09:21:03 -07:00
cat > /etc/rsyncd.conf <<-EOF
[config]
path = /var/snap/solana/current/config
hosts allow = *
read only = true
EOF
systemctl enable rsync
systemctl start rsync