X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=config%2Frootfiles%2Fcore%2F47%2Fupdate.sh;h=3adc6165812dd6c436f20a9862048201b5408180;hp=b67200a70a056a7c554b87a7d65d73ddf874c0c2;hb=0b1f331c5081e10d98ae9b9174bda2fc3442265d;hpb=0ccf2cc4170c0072b88246938d793b624ac71c4e diff --git a/config/rootfiles/core/47/update.sh b/config/rootfiles/core/47/update.sh index b67200a70a..3adc616581 100644 --- a/config/rootfiles/core/47/update.sh +++ b/config/rootfiles/core/47/update.sh @@ -25,8 +25,13 @@ /usr/local/bin/backupctrl exclude >/dev/null 2>&1 # -# Remove core updates from pakfire cache to save space... -rm -f /var/cache/pakfire/core-upgrade-*.ipfire +# Remove old core updates from pakfire cache to save space... +core=47 +for (( i=1; i<=$core; i++ )) +do + rm -f /var/cache/pakfire/core-upgrade-*-$i.ipfire +done + # #Stop services @@ -34,6 +39,11 @@ rm -f /var/cache/pakfire/core-upgrade-*.ipfire #Extract files extract_files +#Generate ssh ecdsa host key if not present +if [ ! -e /etc/ssh/ssh_host_ecdsa_key ]; then + ssh-keygen -qf /etc/ssh/ssh_host_ecdsa_key -N '' -t ecdsa +fi + # #Start services