KITAITI Makoto
null+****@clear*****
Mon Jan 11 20:30:36 JST 2016
KITAITI Makoto 2016-01-11 20:30:36 +0900 (Mon, 11 Jan 2016) New Revision: 03b27c55c080a4f48f656d2c3aa1d4cd8484a244 https://github.com/droonga/droonga-http-server/commit/03b27c55c080a4f48f656d2c3aa1d4cd8484a244 Merged 0f9441b: Merge pull request #13 from KitaitiMakoto/systemd Message: Run droonga-http-server-configure as droonga-http-server user Modified files: install.sh Modified: install.sh (+4 -1) =================================================================== --- install.sh 2016-01-11 20:09:15 +0900 (b90c87c) +++ install.sh 2016-01-11 20:30:36 +0900 (eeb8522) @@ -206,15 +206,18 @@ setup_configuration_directory() { fi # we should use --no-prompt instead of --quiet, for droonga-http-server 1.0.9 and later. + sudo -u $USER /bin/bash -c " + export PATH=$NODEJS_BASE_DIR/bin:$PATH droonga-http-server-configure --quiet \ --droonga-engine-host-name=$ENGINE_HOST \ --droonga-engine-port=$ENGINE_PORT \ --receive-host-name=$HOST \ --port=$PORT if [ $? -ne 0 ]; then - echo "ERROR: Failed to configure $NAME!" + echo \"ERROR: Failed to configure $NAME!\" exit 1 fi + " fi chown -R $USER:$GROUP $DROONGA_BASE_DIR -------------- next part -------------- HTML����������������������������...Download