소스 검색

crontab config files seem to need the PATH variable

Till Klocke 9 년 전
부모
커밋
e1df65a39e
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      roles/ff-supernode/templates/nodeinfo.cron.j2
  2. 1 0
      roles/ffmap-backend/templates/ffmap-backend.cron.j2

+ 1 - 0
roles/ff-supernode/templates/nodeinfo.cron.j2

@@ -1 +1,2 @@
+PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
 * * * * * root {{supernode_freifunk_tools_dir}}/nodeinfo/nodeinfo.py | gzip | alfred -s 158

+ 1 - 0
roles/ffmap-backend/templates/ffmap-backend.cron.j2

@@ -1 +1,2 @@
+PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
 * * * * * root {{ffmap_backend_install_dir}}/backend.py -d {{ffmap_backend_data_dir}} -p {{ffmap_backend_prune_days}}