summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Pawlowski <julian.pawlowski@gmail.com>2013-02-26 16:55:11 +0100
committerJulian Pawlowski <julian.pawlowski@gmail.com>2013-02-26 16:55:11 +0100
commite1247c7232ffa9cda8bdf6cf731cc8d30127fd1c (patch)
tree71eb7e1b01102f33a0b4259ad314d33b3a2babaf
parent1949fb99ccb5b26ec8e044985a475b67052b2d90 (diff)
should be possible to run the ruby script directly as environment should allow this, lets see
-rw-r--r--config/schedule.rb2
-rwxr-xr-xscript/logout_phones.sh1
2 files changed, 1 insertions, 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 $@