Improved SETUP.sh script
This commit is contained in:
parent
5d8f97a691
commit
48a59cf71a
@ -4222,6 +4222,9 @@ v0.33.19 26-Oct-2001
|
|||||||
the new style (not setuid) of mbsebbs.
|
the new style (not setuid) of mbsebbs.
|
||||||
Remove /opt/mbse/etc/maint to let it replace with a new
|
Remove /opt/mbse/etc/maint to let it replace with a new
|
||||||
version, or change it by hand.
|
version, or change it by hand.
|
||||||
|
After compilation and installation run "mbfile check" to
|
||||||
|
update all file entries in the files database. This give a lot
|
||||||
|
of output in the logfile, don't worry about it.
|
||||||
|
|
||||||
general:
|
general:
|
||||||
Made the Makefile system more simple. The bbs programs now
|
Made the Makefile system more simple. The bbs programs now
|
||||||
@ -4231,6 +4234,9 @@ v0.33.19 26-Oct-2001
|
|||||||
this may change by adding a login wrapper, for now this is how
|
this may change by adding a login wrapper, for now this is how
|
||||||
it works now. Take it or leave it.
|
it works now. Take it or leave it.
|
||||||
|
|
||||||
|
SETUP.sh
|
||||||
|
Better grep to check for excisting usernames like bbs, mbse.
|
||||||
|
|
||||||
lang:
|
lang:
|
||||||
Changed language prompts 6, 71, 429.
|
Changed language prompts 6, 71, 429.
|
||||||
Added language prompts 472 and 473 for FS editor.
|
Added language prompts 472 and 473 for FS editor.
|
||||||
|
8
SETUP.sh
8
SETUP.sh
@ -134,14 +134,14 @@ if [ "$MBSE_ROOT" != "" ]; then
|
|||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "`grep mbse: /etc/passwd`" != "" ]; then
|
if [ "`grep -w mbse: /etc/passwd`" != "" ]; then
|
||||||
echo "*** User 'mbse' already exists on this system ***"
|
echo "*** User 'mbse' already exists on this system ***"
|
||||||
echo "*** SETUP aborted ***"
|
echo "*** SETUP aborted ***"
|
||||||
log "!" "Aborted, user 'mbse' already exists on this system"
|
log "!" "Aborted, user 'mbse' already exists on this system"
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "`grep bbs: /etc/group`" != "" ]; then
|
if [ "`grep -w bbs: /etc/group`" != "" ]; then
|
||||||
echo "*** Group 'bbs' already exists on this system ***"
|
echo "*** Group 'bbs' already exists on this system ***"
|
||||||
echo "*** SETUP aborted ***"
|
echo "*** SETUP aborted ***"
|
||||||
log "!" "Aborted, group 'bbs' already exists on this system"
|
log "!" "Aborted, group 'bbs' already exists on this system"
|
||||||
@ -300,7 +300,7 @@ if [ "$OSTYPE" = "Linux" ]; then
|
|||||||
if [ -f /etc/shadow ]; then
|
if [ -f /etc/shadow ]; then
|
||||||
log "+" "Standard shadow password system"
|
log "+" "Standard shadow password system"
|
||||||
# Not all systems are the same...
|
# Not all systems are the same...
|
||||||
if [ "`grep bbs:\!\!: /etc/shadow`" != "" ]; then
|
if [ "`grep -w bbs:\!\!: /etc/shadow`" != "" ]; then
|
||||||
sed /bbs:\!\!:/s/bbs:\!\!:/bbs::/ /etc/shadow >/etc/shadow.bbs
|
sed /bbs:\!\!:/s/bbs:\!\!:/bbs::/ /etc/shadow >/etc/shadow.bbs
|
||||||
else
|
else
|
||||||
sed /bbs:\!:/s/bbs:\!:/bbs::/ /etc/shadow >/etc/shadow.bbs
|
sed /bbs:\!:/s/bbs:\!:/bbs::/ /etc/shadow >/etc/shadow.bbs
|
||||||
@ -322,7 +322,7 @@ if [ "$OSTYPE" = "Linux" ]; then
|
|||||||
echo " File /etc/shadow.mbse is your backup of /etc/shadow"
|
echo " File /etc/shadow.mbse is your backup of /etc/shadow"
|
||||||
else
|
else
|
||||||
log "+" "Not a shadow password system"
|
log "+" "Not a shadow password system"
|
||||||
if [ "`grep bbs:\!\!: /etc/passwd`" != "" ]; then
|
if [ "`grep -w bbs:\!\!: /etc/passwd`" != "" ]; then
|
||||||
sed /bbs:\!\!:/s/bbs:\!\!:/bbs::/ /etc/passwd >/etc/passwd.bbs
|
sed /bbs:\!\!:/s/bbs:\!\!:/bbs::/ /etc/passwd >/etc/passwd.bbs
|
||||||
else
|
else
|
||||||
sed /bbs:\!:/s/bbs:\!:/bbs::/ /etc/passwd >/etc/passwd.bbs
|
sed /bbs:\!:/s/bbs:\!:/bbs::/ /etc/passwd >/etc/passwd.bbs
|
||||||
|
3
TODO
3
TODO
@ -14,9 +14,6 @@ $Id$
|
|||||||
L = Cosmetic or nice to have.
|
L = Cosmetic or nice to have.
|
||||||
|
|
||||||
|
|
||||||
SETUP.sh:
|
|
||||||
N: Better way to grep for excisting usernames and groupnames.
|
|
||||||
|
|
||||||
mbsebbs:
|
mbsebbs:
|
||||||
L: Reading of function keys over modem lines, or worse PPP connections,
|
L: Reading of function keys over modem lines, or worse PPP connections,
|
||||||
must be fixed. Timing problems together with modem buffering?
|
must be fixed. Timing problems together with modem buffering?
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
*
|
*
|
||||||
* File ..................: mbfido/makestat.c
|
* $Id$
|
||||||
* Purpose ...............: Make Web statistics
|
* Purpose ...............: Make Web statistics
|
||||||
* Last modification date : 08-Jun-2001
|
|
||||||
*
|
*
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
* Copyright (C) 1997-2001
|
* Copyright (C) 1997-2001
|
||||||
@ -418,7 +417,6 @@ void MakeStat(void)
|
|||||||
fprintf(fw, "<TR><TH>ISDN calls</TH><TD align=right>%lu</TD></TR>\n", SYSINFO.ISDN);
|
fprintf(fw, "<TR><TH>ISDN calls</TH><TD align=right>%lu</TD></TR>\n", SYSINFO.ISDN);
|
||||||
fprintf(fw, "<TR><TH>Network calls</TH><TD align=right>%lu</TD></TR>\n", SYSINFO.Network);
|
fprintf(fw, "<TR><TH>Network calls</TH><TD align=right>%lu</TD></TR>\n", SYSINFO.Network);
|
||||||
fprintf(fw, "<TR><TH>Local calls</TH><TD align=right>%lu</TD></TR>\n", SYSINFO.Local);
|
fprintf(fw, "<TR><TH>Local calls</TH><TD align=right>%lu</TD></TR>\n", SYSINFO.Local);
|
||||||
fprintf(fw, "<TR><TH>ADSL calls</TH><TD align=right>%lu</TD></TR>\n", SYSINFO.ADSL);
|
|
||||||
fprintf(fw, "<TR><TH>Start date</TH><TD align=right>%s</TD></TR>\n", adate(SYSINFO.StartDate));
|
fprintf(fw, "<TR><TH>Start date</TH><TD align=right>%s</TD></TR>\n", adate(SYSINFO.StartDate));
|
||||||
fprintf(fw, "<TR><TH>Last caller</TH><TD align=right>%s</TD></TR>\n", SYSINFO.LastCaller);
|
fprintf(fw, "<TR><TH>Last caller</TH><TD align=right>%s</TD></TR>\n", SYSINFO.LastCaller);
|
||||||
fprintf(fw, "</TABLE>\n");
|
fprintf(fw, "</TABLE>\n");
|
||||||
|
Reference in New Issue
Block a user