Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
fd36623cea | |||
810cd999d4 |
36
ap23/goss/sv/goss.yaml
Normal file
36
ap23/goss/sv/goss.yaml
Normal file
@ -0,0 +1,36 @@
|
||||
file:
|
||||
|
||||
#check si latest.sql.gs existe
|
||||
/root/latest.sql.gz:
|
||||
exists: true
|
||||
filetype: file
|
||||
|
||||
|
||||
command:
|
||||
|
||||
#check le contenue de la crontab
|
||||
crontab -l:
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- 0 21 * * 1-7 /root/svbase.sh
|
||||
stderr: []
|
||||
timeout: 10000
|
||||
|
||||
#check la sortie du fichier hostname de ap23
|
||||
ssh root@ap23 hostname:
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- ap23
|
||||
stderr: []
|
||||
timeout: 10000
|
||||
|
||||
|
||||
interface:
|
||||
|
||||
#check l'existence de la carte enp0s3, son adresse ipv4, mac et sa valeur mtu
|
||||
enp0s3:
|
||||
exists: true
|
||||
addrs:
|
||||
- 192.168.0.33/24
|
||||
- fe80::a00:27ff:fe06:7232/64
|
||||
mtu: 1500
|
24
ap23/script/ScriptDokuwiki.sh
Executable file
24
ap23/script/ScriptDokuwiki.sh
Executable file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
#set -e
|
||||
set -u
|
||||
#instalation des paquets
|
||||
apt install -y wget apache2 php php-gd php-mbstring php-xml
|
||||
|
||||
#srcipt installation
|
||||
cd /tmp || return
|
||||
wget http://depl.sio.lan/store/dokuwiki-stable.tgz
|
||||
tar xvfs 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 .
|
||||
chown -R www-data:www-data data lib conf
|
||||
|
||||
adresse=$(ip -br a|grep UP|awk '{print $3}t'|cut -f1 -d'/')
|
||||
echo "installation du dokuwiki terminee.Conecter vous a l'adresse http://${adresse}/doku"
|
||||
|
||||
exit 0
|
Reference in New Issue
Block a user