From 584e3593e6ceda91cc1400cf697ea48f8e235840 Mon Sep 17 00:00:00 2001 From: src386 Date: Mon, 31 Aug 2015 15:16:42 +0200 Subject: [PATCH] check if path empty --- README.md | 1 + TODO | 1 - scripts/install | 8 +++++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 16b0b70..4880b41 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Current Movim version : 0.9 git2015-08-31 - Movim systemd service now has a PID and a syslog identifier. - Remove proxy_read_timeout and proxy_send_timeout in vhost configuration (default 60s is enough) - Movim sysvinit script now uses syslog. +- Installation script now checks if path is empty. 0.8b 2015-08-24 - Added language selection : ar, de, es, it, ja, nl, ru diff --git a/TODO b/TODO index 5891807..b39eec0 100644 --- a/TODO +++ b/TODO @@ -1,2 +1 @@ -- Check if path is not empty beforce install - Set timezone in php5-fpm pool diff --git a/scripts/install b/scripts/install index 371a7d7..8239164 100644 --- a/scripts/install +++ b/scripts/install @@ -29,7 +29,13 @@ fi # Check password not empty if [[ -z "$password" ]]; then -printf "Error empty admin password, aborting" +printf "Error empty admin password, installation aborted" + exit 1 +fi + +# Check path not empty +if [[ -z "$path" ]]; then +printf "Error path is empty, installation aborted" exit 1 fi