commit 52c37f2880909167825bb89d8daa1d1ea9f548ff parent 4f3135e55b364ace4e1c03576e1da7f0532fc2bc Author: dwrz <dwrz@dwrz.net> Date: Thu, 2 Feb 2023 15:30:21 +0000 Fix setup script link files Diffstat:
M | setup | | | 12 | ++++++------ |
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/setup b/setup @@ -136,12 +136,12 @@ write_settings() { } link_files() { - ln -s "./config/motion.conf" "/etc/motion/motion.conf" - ln -s "./config/msmtprc" "${MOTION_DIR}/.msmtprc" - ln -s "./config/muttrc" "${MOTION_DIR}/.muttrc" - ln -s "./scripts/alert" "${MOTION_DIR}/alert" - ln -s "./scripts/notify" "${MOTION_DIR}/notify" - ln -s "./scripts/sync" "${MOTION_DIR}/sync" + ln -s "${PWD}/config/motion.conf" "/etc/motion/motion.conf" + ln -s "${PWD}/config/msmtprc" "${MOTION_DIR}/.msmtprc" + ln -s "${PWD}/config/muttrc" "${MOTION_DIR}/.muttrc" + ln -s "${PWD}/scripts/alert" "${MOTION_DIR}/alert" + ln -s "${PWD}/scripts/notify" "${MOTION_DIR}/notify" + ln -s "${PWD}/scripts/sync" "${MOTION_DIR}/sync" } main() {