ALT Linux Bugzilla
– Attachment 390 Details for
Bug 4008
FR: docs to add
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
sandman setup script (root-run part)
sandman-root-setup.sh (text/plain), 2.44 KB, created by
Michael Shigorin
on 2004-04-20 18:13:15 MSD
(
hide
)
Description:
sandman setup script (root-run part)
Filename:
MIME Type:
Creator:
Michael Shigorin
Created:
2004-04-20 18:13:15 MSD
Size:
2.44 KB
patch
obsolete
>#!/bin/sh ># sandman setup script by Michael Shigorin, 2004 ># special thanks to lioka and raorn ># use, modify and distribute freely > >[ "$EUID" = "0" ] || { > echo "This script needs root privileges and a clue on why to run it!" > echo "Make sure these prerequisites are met." > exit 1 >} > >REPOS=/etc/sandman/repos >SUDO=/etc/sudo.d/sandman >CVS=/var/cvs > >echo "This script will install sandman software as described here:" >echo "http://www.linux-os.ru/Members/gvy/sandman-sisyphus-mini-howto/" >echo -n "Press <Enter> to continue, or better yet <Ctrl-C> not to: " >read > >echo "Proceeding." >echo > ># software >echo "* installing software... " >rpm -q sandman sandman-server cvs >&/dev/null && { > echo "already done." >} || { > echo > apt-get install sandman sandman-server cvs || exit 1 >} > ># configs >echo -n "* modifying $REPOS... " >rpm -V sandman-server | grep -q $REPOS && { > echo "already modified, so see yourself" >} || { > echo "(was default)" > mv -i $REPOS $REPOS.setuporig > cat >> $REPOS << EOF >[global] >target = i586 >distribution = ALT Linux >vendor = ALT Linux Team >cvsroot = /var/cvs >cvsmodule = release > >[classic] >stable = file:/var/ftp/pub/Linux/ALT/Sisyphus i586 classic >basesystem = basesystem >buildsystem = rpm-build getopt kernel-headers-common >EOF >} > >echo -n "* modifying $SUDO... " >rpm -V sandman-server | grep -q $SUDO && { > echo "already modified, so see yourself" >} || { > echo "(was default)" > cp -a $SUDO $SUDO.setuporig > subst 's/^# %sandman/%sandman/' $SUDO > subst "s/localhost.localdomain/`hostname`/" $SUDO >} > ># init cvs repo >echo -n "* initializing $CVS... " >[ -d $CVS ] && { > echo " already exists, skipping!" >} || { > cvsinitroot $CVS && \ > chmod g+w $CVS && \ > echo "done" >} > ># create "classic" repo tree >echo "* creating dir tree for 'classic' repo... " >mkdir -p \ > /var/lib/sandman/classic/stable/{SRPMS.classic,i586/{RPMS.classic,base}} >chown -R sandman:sandman /var/lib/sandman/classic > ># minor workaround per lioka's advice... ("till XFree86 packaging is fixed") ># see also http://www.linux-os.ru/Members/gvy/sandman-tips-1/ >echo "* tweaking sandman a bit..." >SANDSERV=/usr/share/sandlib/sandserv.tcl >grep -v DURING_INSTALL $SANDSERV > $SANDSERV-new >[ -f $SANDSERV.setuporig ] || mv $SANDSERV $SANDSERV.setuporig >mv $SANDSERV-new $SANDSERV > ># finally >echo "** done **" >echo >echo "You'll need to do user setup (sandman-user-setup.sh)," >echo "include needed user(s) to cvs, cvsadmin, sandman groups," >echo "and start the server with 'service sandd start'" >echo
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 4008
: 390 |
391
|
392
|
394