/srv is not on bsd systems

This commit is contained in:
Jérémy Dubois 2020-03-25 09:31:44 +01:00
parent e043118a78
commit 1fb0af4255

View file

@ -349,7 +349,7 @@ SSH_PORT=$(echo "${server}" | cut -d':' -f2)
HOSTNAME=$(hostname) HOSTNAME=$(hostname)
if [ "${SYSTEM}" = "linux" ]; then if [ "${SYSTEM}" = "linux" ]; then
rep="/bin /boot /lib /opt /sbin /usr" rep="/bin /boot /lib /opt /sbin /usr /srv"
else else
rep="/bsd /bin /sbin /usr" rep="/bsd /bin /sbin /usr"
fi fi
@ -397,7 +397,6 @@ if [ "${SYNC_TASKS}" = "1" ]; then
/root \ /root \
/var \ /var \
/home \ /home \
/srv \
-e "${RSH_COMMAND}" \ -e "${RSH_COMMAND}" \
"root@${SSH_SERVER}:/var/backup/" \ "root@${SSH_SERVER}:/var/backup/" \
| tail -30 >> $LOGFILE | tail -30 >> $LOGFILE