#!/bin/sh
JOURNAL=/opt/postinstalle/20240420.log
WGET=/usr/bin/wget
WGET_OPT=-q -nc -T 60 -Y off -C off -a $JOURNAL
echo DEBUT : `date '+%D %Hh%M:%S'`


#0
echo .:0:. CREATION DES REPERTOIRES .:.
mkdir -p /opt/postinstalle/backupcustom

#1
echo .:1:. TELECHARGEMENT .:.
echo Vous pourrez consulter le journal des telechargements : /opt/postinstalle/20240420.log
cd /opt/postinstalle/backupcustom

#2
echo .:2:. INSTALLATION .:.
echo backupcustom
cd /opt/postinstalle/backupcustom
mkdir -p /opt/addons
cd -p /opt/addons
wget http://site.facile.free.fr/BackupCustom/3.1.9.3/smeserver-backupcustom-3.1-9.3.noarch.rpm
rpm -ivh smeserver-backupcustom-3.1-9.3.noarch.rpm

echo FIN : `date '+%D %Hh%M:%S'`
Fermer