diff --git a/install.sh b/install.sh index bd147dcf..8f29fb82 100755 --- a/install.sh +++ b/install.sh @@ -1,8 +1,9 @@ #!/bin/bash apt-get update -apt-get install npm -apt-get install nodejs +apt-get install -y npm +apt-get install -y nodejs npm install -g forever +ln -s /usr/bin/nodejs /usr/bin/node DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/server forever stopall CMD="forever start -l /var/log/zoff.log -a --workingDir $DIR $DIR/server.js" diff --git a/php/nochan.php b/php/nochan.php index f971f18c..0baad043 100755 --- a/php/nochan.php +++ b/php/nochan.php @@ -19,12 +19,30 @@ if(isset($_GET['chan'])){
+