2 Commits
v0.1 ... v0.2

Author SHA1 Message Date
root
b4569ec7c4 doku 2021-10-19 07:36:20 +00:00
raphanaud
87b4bf606d syslog 2021-10-19 09:34:20 +02:00
2 changed files with 24 additions and 0 deletions

20
doku/inst Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
DEST=/var/www/html/doku
#creation chemin doku
apt install -y apache2 php php-mbstring php-gd php-xml
cd /root
[ -r dokuwiki-stable.tgz ] || wget http://depl/store/dokuwiki-stable.tgz
#on regarde si le dokuwiki est present, sinon on l'install
if [ $? != 0 ]; then
echo "$0 : erreurwget" 1>&2
exit 1
fi
tar xvfz dokuwiki-stable.tgz
[ -d "${DEST}" ] || mkdir "${DEST}"
#on regarde si le chemin DEST est creer, sinon on le fait
cp -a dokuwiki-2020-07-29/* "${DEST}"
cd "${DEST}"
chown -R root:root .
chmod -R 755 .
chown -R www-data:www-data data lib conf .
exit 0

4
syslog/redirectap33.sh Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
iptables -t nat -A PREROUTING -d 10.121.38.33 -p udp --dport 515 -j DNAT --to-port 192.168.0.40:514
iptables -t nat -A POSTROUTING -d 192.168.0.40 -p udp --dport 515 -j SNAT --to 10.121.38.32