Sha256: 05828ad75d90a9cccd8ae3311b39982692d1e5a60f1564990c87e7862aaafc2c
Contents?: true
Size: 791 Bytes
Versions: 7
Compression:
Stored size: 791 Bytes
Contents
#!/bin/sh #NOTE: you can also call # /usr/local/ec2onrails/bin/exec_runner # to run a script under a specific role # see the file for details if test -e /mnt/app/current; then cd /mnt/app/current if test -e /mnt/app/current/script/cron/weekly; then if test -f /mnt/app/current/script/cron/weekly; then sudo -u app /usr/local/ec2onrails/bin/rails_env script/cron/weekly; else for f in script/cron/weekly/*; do if test -f $f; then sudo -u app /usr/local/ec2onrails/bin/rails_env $f fi done fi exit 0; fi #DEPRECATED: just for old usage.... if test -e /mnt/app/current/script/weekly then sudo -u app /usr/local/ec2onrails/bin/rails_env script/weekly exit 0; fi fi
Version data entries
7 entries across 7 versions & 3 rubygems