diff --git a/Makefile b/Makefile index cb37c90..b66f152 100644 --- a/Makefile +++ b/Makefile @@ -19,10 +19,9 @@ install: sed -i 's^CUR_DIR^$(CUR_DIR)^g' jinstall/awwkoala.init sed -i 's^USERCUR^$(USERCUR)^g' jinstall/awwkoala.init sed -i 's^PORT^$(PORT)^g' jinstall/awwkoala.init - mv jinstall/awwkoala.init /etc/init.d/ + cp jinstall/awwkoala.init /etc/init.d/awwkoala.init chmod +x /etc/init.d/awwkoala.init - mv jinstall/awwkoala.nginx /etc/nginx/sites-available/awwkoala.nginx - rm /etc/nginx/sites-enabled/awwkoala.nginx + cp jinstall/awwkoala.nginx /etc/nginx/sites-available/awwkoala.nginx ln -fs /etc/nginx/sites-available/awwkoala.nginx /etc/nginx/sites-enabled/awwkoala.nginx /etc/init.d/nginx reload /etc/init.d/nginx restart diff --git a/install/awwkoala.init b/install/awwkoala.init old mode 100644 new mode 100755 diff --git a/install/awwkoala.nginx b/install/awwkoala.nginx old mode 100644 new mode 100755