Piro / YUKI Hiroshi
null+****@clear*****
Tue Sep 23 16:46:34 JST 2014
Piro / YUKI Hiroshi 2014-09-23 16:46:34 +0900 (Tue, 23 Sep 2014) New Revision: 1a131918868e5518311c47a6a838136472c7801b https://github.com/droonga/droonga-engine/commit/1a131918868e5518311c47a6a838136472c7801b Message: Don't allow to run not in root Modified files: install.sh Modified: install.sh (+4 -1) =================================================================== --- install.sh 2014-09-23 15:27:18 +0900 (61666c6) +++ install.sh 2014-09-23 16:46:34 +0900 (89995a9) @@ -240,7 +240,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����������������������������... Download