home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Improve web server setup.
[config]
/
all_new_2018
/
setup_web.sh
diff --git a/all_new_2018/setup_web.sh
b/all_new_2018/setup_web.sh
new file mode 100644
(file)
index 0000000..
8aac7ef
--- /dev/null
+++ b/
all_new_2018/setup_web.sh
@@ -0,0
+1,7
@@
+#!/bin/sh
+set -e
+
+./hardlink_etc.sh web
+sed -i "s/REPLACE_fqdn_ECALPER/$(hostname -f)/g" /etc/nginx/nginx.conf
+apt -y -o Dpkg::Options::=--force-confold install nginx
+iptables-restore /etc/iptables/rules.v4