1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Updated names

Former-commit-id: fbb6eb30f4cec82631b7e3cbd991b5f533feed18 [formerly b2afff30ffbd9e76fe8d13756638d4222c8c1f22] [formerly 13f3e4e6e2af44827ffb20a7e9410f206a5a2a59 [formerly 8b4088e141]]
Former-commit-id: fd1d10748ea9b9de68c53d8c2b0cb31eb38b672a [formerly 29ff5ae1189bd9d114087c1e401ae8a66b833d9e]
Former-commit-id: a1d683e78f698f5f116ae2dade5695a95f51e4d3
This commit is contained in:
Zack Scholl 2016-02-10 12:14:40 -05:00
parent 94b69e6f6c
commit 74a979393f

View File

@ -1,5 +1,5 @@
ADDRESS = cowyo.com ADDRESS = awwkoala.com
PORT = 8001 PORT = 8002
CUR_DIR = $(shell bash -c 'pwd') CUR_DIR = $(shell bash -c 'pwd')
USERCUR = $(shell bash -c 'whoami') USERCUR = $(shell bash -c 'whoami')
@ -10,23 +10,23 @@ make:
install: install:
rm -rf jinstall rm -rf jinstall
mkdir jinstall mkdir jinstall
cp install/cowyo.nginx jinstall/cowyo.nginx cp install/awwkoala.nginx jinstall/awwkoala.nginx
sed -i 's/PORT/$(PORT)/g' jinstall/cowyo.nginx sed -i 's/PORT/$(PORT)/g' jinstall/awwkoala.nginx
sed -i 's/ADDRESS/$(ADDRESS)/g' jinstall/cowyo.nginx sed -i 's/ADDRESS/$(ADDRESS)/g' jinstall/awwkoala.nginx
sed -i 's^CUR_DIR^$(CUR_DIR)^g' jinstall/cowyo.nginx sed -i 's^CUR_DIR^$(CUR_DIR)^g' jinstall/awwkoala.nginx
cp install/cowyo.init jinstall/cowyo.init cp install/awwkoala.init jinstall/awwkoala.init
sed -i 's/EXT_ADDRESS/$(ADDRESS)/g' jinstall/cowyo.init sed -i 's/EXT_ADDRESS/$(ADDRESS)/g' jinstall/awwkoala.init
sed -i 's^CUR_DIR^$(CUR_DIR)^g' jinstall/cowyo.init sed -i 's^CUR_DIR^$(CUR_DIR)^g' jinstall/awwkoala.init
sed -i 's^USERCUR^$(USERCUR)^g' jinstall/cowyo.init sed -i 's^USERCUR^$(USERCUR)^g' jinstall/awwkoala.init
sed -i 's^PORT^$(PORT)^g' jinstall/cowyo.init sed -i 's^PORT^$(PORT)^g' jinstall/awwkoala.init
mv jinstall/cowyo.init /etc/init.d/ mv jinstall/awwkoala.init /etc/init.d/
chmod +x /etc/init.d/cowyo.init chmod +x /etc/init.d/awwkoala.init
mv jinstall/cowyo.nginx /etc/nginx/sites-available/cowyo.nginx mv jinstall/awwkoala.nginx /etc/nginx/sites-available/awwkoala.nginx
rm /etc/nginx/sites-enabled/cowyo.nginx rm /etc/nginx/sites-enabled/awwkoala.nginx
ln -fs /etc/nginx/sites-available/cowyo.nginx /etc/nginx/sites-enabled/cowyo.nginx ln -fs /etc/nginx/sites-available/awwkoala.nginx /etc/nginx/sites-enabled/awwkoala.nginx
/etc/init.d/nginx reload /etc/init.d/nginx reload
/etc/init.d/nginx restart /etc/init.d/nginx restart
/etc/init.d/cowyo.init restart /etc/init.d/awwkoala.init restart
rm -rf jinstall rm -rf jinstall
.PHONY: install .PHONY: install