| Server IP : 173.236.223.38 / Your IP : 216.73.216.33 Web Server : Apache System : Linux vps62975 6.8.0-83-generic #83~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Sep 9 18:19:47 UTC 2 x86_64 User : invmicvps ( 6727287) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/nn/ |
Upload File : |
#!/bin/sh
# Generated by nn release 6.7.3 (NOV)
VERSION="6.7.3 (NOV)"
AWK="awk"
NOV=true
NNTP=true
ACTIVE=/usr/lib/nn/.nn/ACTIVE
NNTPCACHE=
LOG=null
TMP=${TMPDIR-/var/tmp}
DB=/usr/lib/nn/.nn
BIN=/usr/bin
LIB=/usr/lib/nn
AUTH=false
# ---- end of prefix
# Upgrade from release 6.3
#
# Convert old rc file to .newsrc
cd
if [ ! -d .nn ]
then
echo "No .nn directory"
exit 1
fi
if [ ! -f .nn/rc ]
then
echo "No rc file -- upgrade not possible"
exit 2
fi
if [ x"$1" = "xn" ]
then
echo "Using existing .newsrc"
else
if [ -f .newsrc ]
then
rm -f .newsrc.old
mv .newsrc .newsrc.old
echo "Old .newsrc saved in .newsrc.old"
fi
echo "Creating .newsrc"
${AWK} '
NF != 3 {
next
}
$1 == "+" || $1 == "!" {
if ($1 == "+")
printf("%s:", $3)
else
printf("%s!", $3)
if ($2+0 > 1)
printf(" 1-%d\n", $2+0)
else
if ($2 == 1)
printf(" 1\n")
else
printf("\n")
}' < .nn/rc > .newsrc
fi
cd .nn
rm -f rc-6.3 S.[0-9]*
mv rc rc-6.3
echo "Old rc file saved in rc-6.3"
echo "Upgrade completed"
exit 0