[Groonga-commit] droonga/droonga-http-server at f2429af [master] Use run_as_user for operation under user home directory

Back to archive index

KITAITI Makoto null+****@clear*****
Sat Jan 16 17:42:41 JST 2016


KITAITI Makoto	2016-01-16 17:42:41 +0900 (Sat, 16 Jan 2016)

  New Revision: f2429af70ba3c53fdd62dd5a972335da26225946
  https://github.com/droonga/droonga-http-server/commit/f2429af70ba3c53fdd62dd5a972335da26225946

  Merged 0f9441b: Merge pull request #13 from KitaitiMakoto/systemd

  Message:
    Use run_as_user for operation under user home directory

  Modified files:
    install.sh

  Modified: install.sh (+2 -3)
===================================================================
--- install.sh    2016-01-16 17:41:42 +0900 (7b76e25)
+++ install.sh    2016-01-16 17:42:41 +0900 (100f851)
@@ -126,9 +126,8 @@ run_as_user() {
 
 install_nodejs() {
   echo "Installing Node.js $NODE_VERSION $NODE_ARCH..."
-  mkdir $NODEJS_BASE_DIR
-  curl $NODEJS_DOWNLOAD_URL | tar -xz --strip-components 1 -C $NODEJS_BASE_DIR
-  chown -R $USER:$GROUP $NODEJS_BASE_DIR
+  run_as_user mkdir $NODEJS_BASE_DIR
+  curl $NODEJS_DOWNLOAD_URL | run_as_user tar -xz --strip-components 1 -C "$NODEJS_BASE_DIR"
 }
 
 detect_engine_config() {
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index