From e6b8a7f5fe00d9ef309f54e518eb3f4d3e71ee85 Mon Sep 17 00:00:00 2001 From: Julian Pawlowski Date: Tue, 26 Feb 2013 16:38:36 +0100 Subject: re-add logout_phones.sh --- script/logout_phones.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 script/logout_phones.sh diff --git a/script/logout_phones.sh b/script/logout_phones.sh new file mode 100755 index 0000000..2a1a54e --- /dev/null +++ b/script/logout_phones.sh @@ -0,0 +1,4 @@ +#! /bin/bash +cd /opt/GS5/script/ +source /usr/local/rvm/scripts/rvm +/opt/GS5/script/logout_phones $@ -- cgit v1.2.3 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