Sha256: 6d48073994fe996ebc3abb862219ee5d9aac3a5824dfee888ac328c8a6f5d852

Contents?: true

Size: 629 Bytes

Versions: 3

Compression:

Stored size: 629 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

cd /mnt/app/current

if test -e /mnt/app/current/script/cron/daily; then 
   if test -f /mnt/app/current/script/cron/daily; then 
      sudo -u app /usr/local/ec2onrails/bin/rails_env script/cron/daily;
   else 
      sudo -u app /usr/local/ec2onrails/bin/rails_env script/cron/daily/*;
   fi
   exit 0;
fi

#DEPRECATED: just for old usage....
if test -e /mnt/app/current/script/daily
then 
   sudo -u app /usr/local/ec2onrails/bin/rails_env script/daily
   exit 0;
fi

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
ScholarNexus-ec2onrails-0.9.10 server/files/etc/cron.daily/app
ScholarNexus-ec2onrails-0.9.11 server/files/etc/cron.daily/app
skippy-ec2onrails-0.9.11 server/files/etc/cron.daily/app