From 840617a0c39b66852daa90bac5b1e8919274bedd Mon Sep 17 00:00:00 2001 From: bol-van Date: Mon, 18 Nov 2024 20:42:55 +0300 Subject: [PATCH] install_easy: copy systemd units instead of linking --- install_easy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install_easy.sh b/install_easy.sh index d001051..a6aca99 100755 --- a/install_easy.sh +++ b/install_easy.sh @@ -549,7 +549,7 @@ service_install_systemd() if [ -w "$SYSTEMD_SYSTEM_DIR" ] ; then rm -f "$INIT_SCRIPT" - ln -fs "$EXEDIR/init.d/systemd/zapret.service" "$SYSTEMD_SYSTEM_DIR" + cp -f "$EXEDIR/init.d/systemd/zapret.service" "$SYSTEMD_SYSTEM_DIR" "$SYSTEMCTL" daemon-reload "$SYSTEMCTL" enable zapret || { echo could not enable systemd service @@ -567,8 +567,8 @@ timer_install_systemd() if [ -w "$SYSTEMD_SYSTEM_DIR" ] ; then "$SYSTEMCTL" disable zapret-list-update.timer "$SYSTEMCTL" stop zapret-list-update.timer - ln -fs "$EXEDIR/init.d/systemd/zapret-list-update.service" "$SYSTEMD_SYSTEM_DIR" - ln -fs "$EXEDIR/init.d/systemd/zapret-list-update.timer" "$SYSTEMD_SYSTEM_DIR" + cp -f "$EXEDIR/init.d/systemd/zapret-list-update.service" "$SYSTEMD_SYSTEM_DIR" + cp -f "$EXEDIR/init.d/systemd/zapret-list-update.timer" "$SYSTEMD_SYSTEM_DIR" "$SYSTEMCTL" daemon-reload "$SYSTEMCTL" enable zapret-list-update.timer || { echo could not enable zapret-list-update.timer