1 Commits

Author SHA1 Message Date
6701d70dd8 Creation utilisateur 2022-03-31 08:57:06 +02:00
5 changed files with 9 additions and 36 deletions

9
ap22/dau-ap22 Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
set -e
set -u
./dau louis >> /var/www/html/doku/conf/users.auth.php
./dau johan >> /var/www/html/doku/conf/users.auth.php
./dau elio >> /var/www/html/doku/conf/users.auth.php
./dau hadrien >> /var/www/html/doku/conf/users.auth.php
./dau thomas >> /var/www/html/doku/conf/users.auth.php

View File

@ -1 +0,0 @@
0 21 * * 1-7 /root/svbase

View File

@ -1,28 +0,0 @@
file:
/root/latest.sql.gz:
exists: true
mode: "0644"
owner: root
group: root
filetype: file
contains: []
command:
crontab -l:
exit-status: 0
stdout:
- 0 21 * * 1-7 /root/svbase
stderr: []
timeout: 10000
ssh ap22 hostname:
exit-status: 0
stdout:
- ap22
stderr: []
timeout: 10000
interface:
enp0s3:
exists: true
addrs:
- 192.168.0.27/24
- fe80::a00:27ff:feef:c5c3/64
mtu: 1500

View File

@ -1,2 +0,0 @@
#!/bin/bash
zcat latest.sql.gz|ssh root@ap22 "mysql -u gsbadm -pgsbadm gsbvisite"

View File

@ -1,5 +0,0 @@
#!/bin/bash
DAT=$(date "+%u")
ssh root@ap22 "mysqldump -u gsbadm -pgsbadm gsbvisite | gzip" > gsbvisite-$DAT.sql.gz
cp gsbvisite-$DAT.sql.gz latest.sql.gz