|
|
@ -7,7 +7,7 @@ set -eux # -x for verbose logging to juju debug-log |
|
|
|
## kal-manage provides the script /usr/lib/kal/dusk/sbin/ssh-cmd-validate |
|
|
|
## used to validate any entrant connection to SSH. |
|
|
|
|
|
|
|
apt-get install -y --force-yes rsync kal-manage |
|
|
|
apt-get install -y --force-yes rsync kal-manage |
|
|
|
|
|
|
|
|
|
|
|
mkdir -p /var/mirror |
|
|
@ -18,6 +18,7 @@ useradd -r rsync -d /var/lib/rsync -g rsync |
|
|
|
|
|
|
|
chown rsync:rsync /var/lib/rsync |
|
|
|
|
|
|
|
## build silently a key for 'rsync' user: |
|
|
|
su -c 'ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa -q' - rsync |
|
|
|
|
|
|
|
## /etc/sudoers |
|
|
|