Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b4569ec7c4 | ||
|
|
87b4bf606d |
20
doku/inst
Executable file
20
doku/inst
Executable 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
4
syslog/redirectap33.sh
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user