diff --git a/setup b/setup index 8a69b5f..c3fed07 100755 --- a/setup +++ b/setup @@ -155,9 +155,10 @@ link_files() { 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" + mkdir -p "${MOTION_DIR}/scripts" + ln -s "${PWD}/scripts/alert" "${MOTION_DIR}/scripts/alert" + ln -s "${PWD}/scripts/notify" "${MOTION_DIR}/scripts/notify" + ln -s "${PWD}/scripts/sync" "${MOTION_DIR}/scripts/sync" } main() {