5 Commits

Author SHA1 Message Date
ed5f06188d Bash utilisateur 2022-03-24 10:52:40 +01:00
cd3fb28888 Bash Doku 2022-03-24 10:18:47 +01:00
e2ea15f1f9 Fichier Goss 2022-03-17 10:27:09 +01:00
2aeccb13ec Fichier Goss 2022-03-17 10:23:50 +01:00
f61c0db24a Supprimer 'sv/goss.yaml' 2022-03-17 10:23:26 +01:00
3 changed files with 45 additions and 0 deletions

11
ap22/dau Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
set -e
set -u
login=$1
password=$(htpasswd -bnBC 10 "" $1|tr -d '\d')
echo "${login}${password}:${login}:${login}@localhost:${login},user"
./dau $1 >> /var/www/html/doku/conf/users.auth.php

26
ap22/test Executable file
View File

@ -0,0 +1,26 @@
#!/bin/bash
#set -e
set -u
#installation des paquets
apt install -y wget apache2 php php-gd php-mbstring php-xml
# script instalation
cd /tmp || return
wget http://depl.sio.lan/store/dokuwiki-stable.tgz
tar xvfz dokuwiki-stable.tgz
mkdir /var/www/html/doku
if [[ ! -d dokuwiki-2020-07-29 ]] ; then
echo "$0 : erreur version dokuwiki"
fi
cp -a dokuwiki-2020-07-29/* /var/www/html/doku
cd /var/www/html/doku || return
chown -R root:root .
chmod -R 755 .
chown -R www-data:www-data data lib conf
adresse=$(ip -br a|grep UP|awk '{print $3}'|cut -f1 -d'/')
echo "instalation de dokuwiki terminee. Connectez-vous avec un navigateur à l'adresse http://${adresse}/doku"
exit 0

View File

@ -5,6 +5,7 @@ file:
owner: root
group: root
filetype: file
contains: []
command:
crontab -l:
exit-status: 0
@ -18,3 +19,10 @@ command:
- ap22
stderr: []
timeout: 10000
interface:
enp0s3:
exists: true
addrs:
- 192.168.0.27/24
- fe80::a00:27ff:feef:c5c3/64
mtu: 1500