#!/bin/sh
JOURNAL=/opt/postinstalle/20240328.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/fetchmail_7

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

#2
echo .:2:. INSTALLATION .:.
echo fetchmail_7
cd /opt/postinstalle/fetchmail_7
mkdir -p /opt/addons
cd /opt/addons
wget http://www.schirrms.net/files/smeserver-fetchmail-1.3.4-08.noarch.rpm
rpm -ivh smeserver-fetchmail-1.3.4-08.noarch.rpm

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