From e1247c7232ffa9cda8bdf6cf731cc8d30127fd1c Mon Sep 17 00:00:00 2001 From: Julian Pawlowski Date: Tue, 26 Feb 2013 16:55:11 +0100 Subject: should be possible to run the ruby script directly as environment should allow this, lets see --- config/schedule.rb | 2 +- script/logout_phones.sh | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/config/schedule.rb b/config/schedule.rb index 94603f1..f2c1a09 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -7,7 +7,7 @@ end # Auto-Reboot of Phones which should be rebootet # every 1.day, :at => '2:30 am' do - command "/opt/GS5/script/logout_phones.sh" + command "/opt/GS5/script/logout_phones" end # Learn more: http://github.com/javan/whenever diff --git a/script/logout_phones.sh b/script/logout_phones.sh index 2a1a54e..41e2a40 100755 --- a/script/logout_phones.sh +++ b/script/logout_phones.sh @@ -1,4 +1,3 @@ #! /bin/bash cd /opt/GS5/script/ -source /usr/local/rvm/scripts/rvm /opt/GS5/script/logout_phones $@ -- cgit v1.2.3