Permalink
Browse files

Run all scripts from the dest directory

  • Loading branch information...
1 parent 0a57923 commit 4e89bebb690ca9f674b197127a0e1dd524e06580 @monsur committed Apr 20, 2015
View
@@ -2,4 +2,5 @@
coverage.html
dest
node_modules
+sonos-now-playing.log
.DS_Store
View
@@ -49,8 +49,7 @@ module.exports = function(grunt) {
server: {
files: [
{expand: true, cwd: 'src/', src: ['config.json'], dest: 'dest/', flatten: true},
- {expand: true, cwd: 'src/server/', src: ['*.js'], dest: 'dest/', flatten: true},
- {expand: true, cwd: 'src/server/', src: ['*.sh'], dest: 'dest/', flatten: true}
+ {expand: true, cwd: 'src/server/', src: ['*.js'], dest: 'dest/', flatten: true}
]
},
client: {
View
@@ -1,5 +1,6 @@
#!/bin/sh
-/opt/node/bin/node /home/pi/Documents/sonos-now-playing/dest/app.js &
+cd /home/pi/Documents/sonos-now-playing/dest
+/opt/node/bin/node ./app.js &
response=0
while [ $response -ne 200 ]
do
File renamed without changes.
File renamed without changes.
@@ -33,13 +33,13 @@ Screensaver.prototype.check = function() {
Screensaver.prototype.sleep = function() {
this.isSleeping = true;
Logger.info("Starting screensaver");
- exec('/home/pi/Documents/sonos-now-playing/dest/sleep.sh', Screensaver.execHandler);
+ exec('../bin/sleep.sh', Screensaver.execHandler);
};
Screensaver.prototype.wake = function() {
this.isSleeping = false;
Logger.info("Stopping screensaver");
- exec('/home/pi/Documents/sonos-now-playing/dest/wake.sh', Screensaver.execHandler);
+ exec('../bin/wake.sh', Screensaver.execHandler);
};
module.exports = Screensaver;

0 comments on commit 4e89beb

Please sign in to comment.