aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChatChimi <Pichue07@gmail.com>2020-05-10 09:19:17 +0200
committerChatChimi <Pichue07@gmail.com>2020-05-10 09:19:17 +0200
commit78f0b26e11e8793e1bed7bb5d1fc98277ff4b49f (patch)
tree2edcb60c9151e7afcee1370e0ae067d66f6b4dd3
parentcb6a7852bf1015497aaaf40cc41050405f3f3f84 (diff)
Auto Server Apache
-rwxr-xr-xautomatisation/apacheAuto.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/automatisation/apacheAuto.sh b/automatisation/apacheAuto.sh
new file mode 100755
index 0000000..6b3800b
--- /dev/null
+++ b/automatisation/apacheAuto.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+#Executer en tant que root
+
+apt install apache2 libapache2-mod-python python-psycopg2
+
+cp -r /root/ATS-Project/www /var/
+
+cp -r /root/ATS-Project/www/server-config/apache2 /etc/
+
+cp -r /root/ATS-Project/www/server-config/ssl /etc/
+
+systemctl restart apache2