[Groonga-commit] droonga/droonga-http-server at 03e7fee [master] Don't allow to run not in root

Back to archive index

Piro / YUKI Hiroshi null+****@clear*****
Tue Sep 23 16:46:43 JST 2014


Piro / YUKI Hiroshi	2014-09-23 16:46:43 +0900 (Tue, 23 Sep 2014)

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

  Message:
    Don't allow to run not in root

  Modified files:
    install.sh

  Modified: install.sh (+4 -1)
===================================================================
--- install.sh    2014-09-23 15:41:21 +0900 (83dcd77)
+++ install.sh    2014-09-23 16:46:43 +0900 (4156c86)
@@ -281,7 +281,10 @@ install_in_centos() {
   /sbin/chkconfig --add $NAME
 }
 
-if [ -e /etc/debian_version ] || [ -e /etc/debian_release ]; then
+if [ "$EUID" != "0" ]; then
+  echo "You must run this script as the root."
+  exit 1
+elif [ -e /etc/debian_version ] || [ -e /etc/debian_release ]; then
   install_in_debian
 elif [ -e /etc/centos-release ]; then
   install_in_centos
-------------- next part --------------
HTML����������������������������...
다운로드 



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