From 41b9faf956afdc97161baf4ce67f1651f62443cc Mon Sep 17 00:00:00 2001 From: src386 Date: Wed, 12 Aug 2015 10:58:06 +0200 Subject: [PATCH] Change init detection --- README.md | 6 ++++++ TODO | 2 +- scripts/install | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b009351..a9c92a9 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,12 @@ Current Movim version : 20150810. **Changelog** +0.2b 2015-08-12 +- Add php5-cli as required + +0.1b 2015-08-12 +- Beta release + **Installation** yunohost app install https://github.com/src386/movim_ynh diff --git a/TODO b/TODO index ec038b5..c92d4c1 100644 --- a/TODO +++ b/TODO @@ -1 +1 @@ -- URL rewriting +- Add SSO support diff --git a/scripts/install b/scripts/install index f31451d..c27a8d6 100644 --- a/scripts/install +++ b/scripts/install @@ -66,7 +66,8 @@ sudo yunohost app addaccess movim -u $admin sudo sed -i "s@YHURL@$domain$path@g" ../conf/movim.{service,init} sudo sed -i "s@YHDIR@$final_path@g" ../conf/movim.{service,init} sudo sed -i "s@YHPORT@$port@g" ../conf/movim.{service,init} -if [ `pgrep -ox systemd` = "1" ]; +initcheck=`pgrep -ox systemd` +if [ "$initcheck" = "1" ]; then sudo cp ../conf/movim.service /lib/systemd/system/ sudo systemctl enable movim.service