1
0
moha/tools/install.sh
daniel Tartavel f8fc3f63ec - changed webserver to apiserver
- added webserver
- a lot of debugging
- install shell script
2022-04-07 01:44:17 +02:00

10 lines
351 B
Bash
Executable File

#!/usr/bin/bash
rsync -aP --exclude "*~" --exclude *kate-swp $1/config/ /etc/moha/
chmod 0500 /etc/moha
chmod 0400 /etc/moha/*
chown domotique:domotique -R /etc/moha
rsync -aP --exclude "*~" --exclude *kate-swp $1/webserver/ /var/www/html/moha/
chmod 0400 -R /var/www/html/moha/
chmod 0500 /var/www/html/moha
chown apache:apache -R /var/www/html/moha