Skip to content

Commit

Permalink
feat: use sync_emby_config
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Jan 21, 2024
1 parent 2845447 commit 242e27c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ function install_resilio(){
--restart=always \
linuxserver/resilio-sync:latest

CRON="0 6 */3 * * bash -c \"\$(curl http://docker.xiaoya.pro/sync_emby_config_test.sh)\" -s ${MEDIA_DIR} $(cat ${DDSREM_CONFIG_DIR}/xiaoya_alist_config_dir.txt) $(cat ${DDSREM_CONFIG_DIR}/container_name/xiaoya_emby_name.txt) $(cat ${DDSREM_CONFIG_DIR}/container_name/xiaoya_resilio_name.txt) >> ${CONFIG_DIR}/cron.log 2>&1"
CRON="0 6 */3 * * bash -c \"\$(curl http://docker.xiaoya.pro/sync_emby_config.sh)\" -s ${MEDIA_DIR} $(cat ${DDSREM_CONFIG_DIR}/xiaoya_alist_config_dir.txt) $(cat ${DDSREM_CONFIG_DIR}/container_name/xiaoya_emby_name.txt) $(cat ${DDSREM_CONFIG_DIR}/container_name/xiaoya_resilio_name.txt) >> ${CONFIG_DIR}/cron.log 2>&1"
if command -v crontab >/dev/null 2>&1; then
crontab -l |grep -v sync_emby_config > /tmp/cronjob.tmp
echo -e "${CRON}" >> /tmp/cronjob.tmp
Expand Down

0 comments on commit 242e27c

Please sign in to comment.