add sshd to csync

This commit is contained in:
2016-05-16 08:27:22 +01:00
parent 1f5f85cfca
commit 44a7801330
4 changed files with 9 additions and 301 deletions

View File

@@ -1,8 +1,9 @@
#!/bin/bash
set -e
# if [ ! -e $CSYNC_CONFIG ]; then
# cp /usr/local/etc/csync2* /host/etc/
# fi
# rm -r /usr/local/etc
# csync2 -k /host/etc/csync2.pem
# ln -sf /host/etc/ /usr/local/etc
HOST_ETC_CSYNC=/host/etc/csync
if [ ! -e $CSYNC_CONFIG ]; then
cp /usr/local/etc/csync2* $HOST_ETC_CSYNC/
csync2 -k $HOST_ETC_CSYNC/csync2.pem
fi
rm -r /usr/local/etc
ln -sf $HOST_ETC_CSYNC/ /usr/local/etc