Replace incompatible busybox /usr/bin/logger with /opt/bin/logger on Synology DSM (now requires util-linux-ng to be installed via ipkg)
This commit is contained in:
parent
c68fbedb26
commit
dc8a35e78d
|
@ -129,8 +129,6 @@ if [[ $MODE == "install" ]]; then
|
|||
$MKDIR "$BKP_DIR"/lib
|
||||
$MKDIR "$BKP_DIR"/usr/bin
|
||||
$MKDIR "$BKP_DIR"/usr/lib
|
||||
$MKDIR "$BKP_DIR"/usr/share
|
||||
|
||||
|
||||
if [[ "$DISTRIBUTION" == "Ubuntu" ]]; then
|
||||
$MKDIR "$BKP_DIR"/usr/share/perl
|
||||
|
@ -144,7 +142,7 @@ if [[ $MODE == "install" ]]; then
|
|||
$CP ./server/bkp/etc/* "$BKP_DIR"/etc/
|
||||
# Correct command paths in rsnapshot config for Synology DSM
|
||||
if [[ "$DISTRIBUTION" == "Synology" ]]; then
|
||||
sed -i "s#/usr/bin/\(cp\|rm\|rsync\)\$#/opt/bin/\1#" "$BKP_DIR"/etc/rsnapshot.global.conf
|
||||
sed -i "s#/usr/bin/\(cp\|rm\|rsync\|logger\)\$#/opt/bin/\1#" "$BKP_DIR"/etc/rsnapshot.global.conf
|
||||
fi
|
||||
|
||||
# Create symlink for chroot
|
||||
|
|
Loading…
Reference in New Issue