From cd5126c6b261da6247e14fa52a4d736cf6902320 Mon Sep 17 00:00:00 2001 From: abeudin Date: Fri, 10 Jan 2014 15:14:59 +0100 Subject: [PATCH] Update install --- scripts/install | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/install b/scripts/install index b610a74..ea745d4 100644 --- a/scripts/install +++ b/scripts/install @@ -32,6 +32,12 @@ final_path=/var/www/etherpadlite sudo mkdir -p $final_path sudo cp -a ../sources/* $final_path sudo cp ../conf/settings.json $final_path +sudo cp ../conf/etherpad-lite /etc/init.d/ +sudo chmod +x /etc/init.d/etherpad-lite +sudo update-rc.d etherpad-lite defaults +sudo mkdir /var/log/etherpad-lite/ +su - www -c "touch /var/log/etherpad-lite/etherpad-lite.log" + sudo $final_path/bin/installDeps.sh > /dev/null 2>&1 sudo npm install forever -g > /dev/null 2>&1