Skip to content

Commit

Permalink
only roll iframely.log if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioroger authored and jasoniangreen committed Dec 15, 2015
1 parent 5465276 commit 98d1ad4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions iframelyStart.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/bash
NOW=$(date +"%m-%d-%Y")
mv ~/.forever/iframely.log ~/.forever/iframely.log-$NOW
[ -f ~/.forever/iframely.log ] && mv ~/.forever/iframely.log ~/.forever/iframely.log-`date +"%m-%d-%Y"`
forever start -l iframely.log server.js

0 comments on commit 98d1ad4

Please sign in to comment.