YUKI Hiroshi
null+****@clear*****
Mon Sep 29 14:57:06 JST 2014
YUKI Hiroshi 2014-09-29 14:57:06 +0900 (Mon, 29 Sep 2014) New Revision: e044db2315463ac26d90d14aa18432b775bdc83a https://github.com/droonga/droonga-http-server/commit/e044db2315463ac26d90d14aa18432b775bdc83a Message: Handle errors Modified files: install.sh Modified: install.sh (+12 -1) =================================================================== --- install.sh 2014-09-29 14:50:24 +0900 (a4bfd86) +++ install.sh 2014-09-29 14:57:06 +0900 (3bc4634) @@ -172,6 +172,10 @@ setup_configuration_directory() { droonga-http-server-configure --quiet \ --droonga-engine-host-name=$ENGINE_HOST \ --receive-host-name=$HOST + if [ $? -ne 0 ]; then + echo "ERROR: Failed to configure $NAME!" + exit 1 + fi fi chown -R $USER:$GROUP $DROONGA_BASE_DIR @@ -314,7 +318,14 @@ install() { fi curl -o $TEMPDIR/functions.sh $(download_url "install/$PLATFORM/functions.sh") - source $TEMPDIR/functions.sh + if ! source $TEMPDIR/functions.sh; then + echo "ERROR: Failed to download post-installation script!" + exit 1 + fi + if ! exist_command register_service; then + echo "ERROR: Downloaded post-installation script is broken!" + exit 1 + fi prepare_user -------------- next part -------------- HTML����������������������������...Download