aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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