22 lines
470 B
Bash
22 lines
470 B
Bash
#!/usr/bin/ksh
|
|
|
|
oggi=`date +%Y%m%d`
|
|
|
|
cp IndicatoriMNP.properties IndicatoriMNP.properties.old$oggi
|
|
|
|
if [ $? -ne 0 ]
|
|
then
|
|
echo 'Attenzione: impossibile aggiornare il file delle properties'
|
|
rm IndicatoriMNP.properties.old$oggi 2> /dev/null
|
|
else
|
|
rm IndicatoriMNP.properties
|
|
cp IndicatoriMNP$oggi.properties IndicatoriMNP.properties
|
|
if [ $? -eq 0 ]
|
|
then
|
|
rm IndicatoriMNP$oggi.properties
|
|
else
|
|
echo 'Attenzione impossibile sostituire il file di properties'
|
|
fi
|
|
fi
|
|
|