ソースを参照

Changed a few minor things in the installer

own3mall 9 年 前
コミット
b02b1abe63
2 ファイル変更12 行追加10 行削除
  1. 1 1
      agent_conf.sh
  2. 11 9
      install.sh

+ 1 - 1
agent_conf.sh

@@ -354,7 +354,7 @@ then
 				while [ 1 ]
 				do
 					echo;
-					echo "If you have installed the Easy Hosting Control Panel (EHCP - www.ehcp.net),"
+					echo "If you have installed the Easy Hosting Control Panel (EHCP - www.ehcpforce.tk),"
 					echo "the agent can use it to create FTP accounts instead of using Pure-FTPd."
 					echo "Would you like to configure this agent to use the API of EHCP?"
 					echo -n "(yes|no) [Default no]: "

+ 11 - 9
install.sh

@@ -252,14 +252,16 @@ if [ -z "$opType" ]; then
 	bash ${agent_home}/agent_conf.sh -s $sudo_password
 fi
 
-echo;echo 
-echo "Installation complete!"  
-echo "Start the agent manually to test it like this:"
-echo "  cd ${agent_home}"
-echo "  ./ogp_agent.pl"
-echo
-echo "If everything looks good, hit <Ctrl C> to kill the agent." 
-echo "The agent can be started with the init scripst by using following command"
-echo "  ${init_dir}/ogp_agent start";
+echo "Attempting to start the Open Game Panel (OGP) agent..."  
+
+systemctl daemon-reload
+chkconfig ogp_agent on
+rc-update add ogp_agent default
+update-rc.d ogp_agent defaults
+service ogp_agent restart
+
+echo;
+echo "OGP installation complete!"  
 echo 
+
 exit 0