hyun.psd; gzuncompress
|
Server IP : 173.236.192.202 / Your IP : 216.73.216.85 Web Server : Apache System : Linux iad1-shared-e1-03 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : andfor18 ( 14551322) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /lib/nn/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] | [ Lock Shell ] | [ Logout ] |
|---|
#!/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