Changeset 1206
- Timestamp:
- 01/14/12 11:52:16 (4 months ago)
- Location:
- main/linuxmuster-base/branches/testing
- Files:
-
- 2 deleted
- 24 edited
- 5 copied
-
. (modified) (1 prop)
-
debian/changelog (modified) (1 diff)
-
debian/install (modified) (1 diff)
-
debian/postinst (modified) (4 diffs)
-
debian/templates (modified) (1 diff)
-
doc (deleted)
-
etc/apt/sources.list.d/paedml51.list (copied) (copied from main/linuxmuster-base/trunk/etc/apt/sources.list.d/paedml51.list)
-
etc/linuxmuster/backup.conf (modified) (2 diffs)
-
prepare/finish-install.d/06linuxmuster (copied) (copied from main/linuxmuster-base/trunk/prepare/finish-install.d/06linuxmuster)
-
sbin/linuxmuster-backup (modified) (3 diffs)
-
sbin/linuxmuster-setup (modified) (6 diffs)
-
sbin/linuxmuster-task (modified) (3 diffs, 1 prop)
-
sbin/paedml51-upgrade (copied) (copied from main/linuxmuster-base/trunk/sbin/paedml51-upgrade)
-
share/config/dist.conf (modified) (2 diffs, 1 prop)
-
share/scripts/linuxmuster-config (modified) (3 diffs)
-
share/scripts/linuxmuster-patch (modified) (2 diffs)
-
share/scripts/remoteadmin.sh (modified) (2 diffs)
-
share/scripts/update-logins.sh (modified) (1 diff)
-
share/tasks/imaging-linbo (modified) (1 diff)
-
share/tasks/server (modified) (1 diff)
-
share/upgrade/paedml51-upgrade.sh (copied) (copied from main/linuxmuster-base/trunk/share/upgrade/paedml51-upgrade.sh)
-
var/config-dynamic/00_stop-services/prepatch (modified) (2 diffs)
-
var/config-dynamic/01_network/postpatch (modified) (1 diff)
-
var/config-dynamic/17_admins/login.bat (modified) (1 diff)
-
var/config-dynamic/20_moodle/moodle.psql (modified) (36 diffs)
-
var/config-dynamic/22_nagios/prepatch (modified) (1 diff)
-
var/config-dynamic/40_linbo/prepatch (modified) (2 diffs, 1 prop)
-
var/config-dynamic/99_start-services/postpatch (modified) (1 diff)
-
var/config-static/etc/apt/sources.list.d/paedml51.list (copied) (copied from main/linuxmuster-base/trunk/var/config-static/etc/apt/sources.list.d/paedml51.list)
-
var/config-static/etc/default/atftpd (deleted)
-
var/config-static/etc/samba/smb.conf.shares (modified) (1 diff, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
main/linuxmuster-base/branches/testing
- Property svn:mergeinfo changed
/main/linuxmuster-base/trunk (added) merged: 657,665,1081,1095-1099,1102-1114,1123-1134,1151,1174,1176,1179-1180,1182-1185,1191-1193,1196-1205
- Property svn:mergeinfo changed
-
main/linuxmuster-base/branches/testing/debian/changelog
r1073 r1206 1 linuxmuster-base (5.1.0-3lenny0) lenny; urgency=low 2 3 * paedml51-upgrade: 4 - fixed -f parameter (closes #563). 5 - removing libc6-i686 at begin of dist-upgrade (if installed) to avoid 6 upgrade problems, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=454557 7 (closes #560). 8 * linuxmuster-patch: 9 - ensures the right imaging task is installed if imaging is changed in modify mode. 10 11 -- Thomas Schmitt <schmitt@lmz-bw.de> Tue, 10 Jan 2012 12:31:32 +0100 12 13 linuxmuster-base (5.1.0-2lenny0) lenny; urgency=low 14 15 * linuxmuster-setup: 16 - removed installation options for integrated firewall and rembo. 17 - changed cdrom package repository to /var/cache/apt/archives. 18 * linuxmuster-prepare: added finish-install.d/06linuxmuster to copy all debs 19 to /var/cache/apt/archives to be able to continue setup without cdrom after reboot. 20 * paedml51-upgrade: 21 - changed cdrom package repository also to /var/cache/apt/archives. 22 - added check for integrated firewall. 23 - hiding console message if cdrom cannot be unmounted. 24 25 -- Thomas Schmitt <schmitt@lmz-bw.de> Sat, 17 Dec 2011 22:37:49 +0100 26 27 linuxmuster-base (5.1.0-1lenny0) lenny; urgency=low 28 29 * linuxmuster-setup: various modifications due to #77 (cdrom package repository 30 will be copied to /var/cache/linuxmuster/pkgs during stage 1, therefore cdrom 31 is no more needed after reboot). 32 * changed version in upgrade scripts. 33 * removed 5.0 upgrade text in doc. 34 * paedml51-upgrade: changed local repo dir also to /var/cache/linuxmuster/pkgs 35 to be equal to linuxmuster-setup. 36 * changed codename to "NiveauLINBO". 37 38 -- Thomas Schmitt <schmitt@lmz-bw.de> Thu, 15 Dec 2011 20:03:43 +0100 39 40 linuxmuster-base (5.1.0-0lenny0) lenny; urgency=low 41 42 * equalized package version to paedml version. 43 * updated paedml sources.list file. 44 * dist.conf: updated paedml version furthermore using 5.0.4 iso for upgrade. 45 * backup.conf, services: changed cupsys to cups, atftpd to tftpd-hpa (closes #551, see #499). 46 * postinst: updates backup.conf as mentioned above, removes old paedml50.list. 47 * linuxmuster-setup: some modifications according to #499 (change atftpd to tftpd-hpa), paedml sources.list update. 48 * added firmware packages to server task. 49 50 -- Thomas Schmitt <schmitt@lmz-bw.de> Tue, 29 Nov 2011 10:13:38 +0100 51 52 linuxmuster-base (1.5.37-lenny0) lenny; urgency=low 53 54 * paedml50-upgrade: 55 * more improvements according to #531. 56 * changed apt-get back to aptitude. 57 * linuxmuster-setup: 58 * implemented linbo as default imaging method. 59 * added 'aptitude::CmdLine::Ignore-Trust-Violations "true";' to temporary 60 apt configuration. 61 62 -- Thomas Schmitt <schmitt@lmz-bw.de> Wed, 19 Oct 2011 11:28:15 +0200 63 64 linuxmuster-base (1.5.36-lenny0) lenny; urgency=low 65 66 * paedml50-upgrade: 67 * uses now apt-get instead of aptitude. 68 * improved error handling in conjunction with package dependencies. 69 * improved handling of postgresql upgrade. 70 * improved logging. 71 * reworked commandline options: 72 -c: Upgrade with cdrom in drive. 73 -d: Online-Upgrade with iso download. 74 -f: Force upgrade whithout version test. 75 -i: ISO file to use for upgrade. 76 * fixed deinstallation of linuxmuster-base during upgrade (closes #531). 77 * linuxmuster-setup: 78 * removes LINBO's torrent files if serverip has changed (closes #531). 79 * implemented linbo as default imaging method. 80 * Version increased to 5.0.4. 81 82 -- Thomas Schmitt <schmitt@lmz-bw.de> Sun, 16 Oct 2011 11:03:48 +0200 83 84 linuxmuster-base (1.5.35-lenny1) lenny; urgency=low 85 86 * linuxmuster-setup: fixed networking start command 87 88 -- Thomas Schmitt <schmitt@lmz-bw.de> Tue, 27 Sep 2011 13:09:58 +0200 89 90 linuxmuster-base (1.5.35-lenny0) lenny; urgency=low 91 92 * paedml50-upgrade.sh: 93 * removes /usr/lib/cups/backend/dnssd at the beginning (closes #522). 94 * fixed typo in local.list file name. 95 * linuxmuster-setup: starts "dpkg-reconfigure linuxmuster-nagios-fernueberwachung" 96 in case of domainname change if package is installed (see #215). 97 * postinst: 98 * removes local.list which was not removed by upgrade script (because of typo, see above). 99 * removed obsolete sophomorix nscd patch. 100 101 -- Thomas Schmitt <schmitt@lmz-bw.de> Sat, 24 Sep 2011 12:57:20 +0200 102 103 linuxmuster-base (1.5.34-lenny0) lenny; urgency=low 104 105 * increased version to 5.0.3. 106 * dist.conf: introduced new environment variables CDMINORVERSION and CDVERSION. 107 * linuxmuster-backup: adds /sbin/portmap to /etc/mindi/deplist.d/netconf (closes #515). 108 109 -- Thomas Schmitt <schmitt@lmz-bw.de> Tue, 13 Sep 2011 13:59:15 +0200 110 111 linuxmuster-base (1.5.33-lenny0) lenny; urgency=low 112 113 * paedml50-upgrade.sh: 114 * removes and recreates remoteadmin-account if detected (closes #489). 115 * minor improvements in upgrade sequence. 116 * remoteadmin.sh, minor improvements according to #489: 117 * creates remoteadmin group now as a system group. 118 * invokation with "NOPASSWD=yes" as a prefix of the linuxmuster-remoteadmin command allows passwordless creation of account: 119 # NOPASSWD=yes linuxmuster-remoteadmin --create. 120 * postinst: fixed revision check for slapd.conf upgrade. 121 122 -- Thomas Schmitt <schmitt@lmz-bw.de> Tue, 26 Jul 2011 08:49:21 +0200 123 124 linuxmuster-base (1.5.32-lenny0) lenny; urgency=low 125 126 * update-logins.sh: filters now ip address prefix of smbstatus output (closes #486). 127 * paedml50-upgrade.sh, minor improvements: reinstalls linuxmuster-mrbs and linuxmuster-portfolio if detected. 128 129 -- Thomas Schmitt <schmitt@lmz-bw.de> Fri, 22 Jul 2011 10:39:11 +0200 130 131 linuxmuster-base (1.5.31-lenny1) lenny; urgency=low 132 133 * paedml50-upgrade.sh, minor fixes: 134 * ldap configuration file backup: no backup if it does not exist. 135 * not starting import_workstations if workstation data file is empty. 136 * creating temporary local package repository from apt's archive cache to force the use of more recent cdrom packages. 137 * added extra check for linuxmuster-pykota to be sure it will be reinstalled during upgrade. 138 * increased required free space under /var to 1.5 GB. 139 * linuxmuster-task, fix: temporary apt.conf configuration of paedml50-upgrade.sh was overwritten (closes #485). 140 141 -- Thomas Schmitt <schmitt@lmz-bw.de> Thu, 21 Jul 2011 20:33:39 +0200 142 143 linuxmuster-base (1.5.31-lenny0) lenny; urgency=low 144 145 * increased version to 5.0.2. 146 * paedml50-upgrade.sh, fix: 147 * linuxmuster remote monitoring packages were deinstalled during upgrade (closes #470). 148 * fixed missing horde columns (closes #477). 149 * smb.conf.shares: added a sample share for programs which need write permissions (closes #466). According to this: 150 * dist.conf: added new constant PROGSRWDIR (/home/samba/pgmw). 151 * postinst: creates $PROGSRWDIR and adds share and mapping examples if necessary. 152 * login.bat: added mapping example for pgmw share. 153 * linuxmuster-setup: updated moodle database template to version 1.9.12+20110518. 154 * linuxmuster-backup: another separator fix for excludedirs in mondarchive invokation line (closes finally #462). 155 156 -- Thomas Schmitt <schmitt@lmz-bw.de> Sat, 16 Jul 2011 12:35:22 +0200 157 1 158 linuxmuster-base (1.5.30-lenny0) lenny; urgency=low 2 159 -
main/linuxmuster-base/branches/testing/debian/install
r787 r1206 1 doc/* usr/share/doc/linuxmuster-base/2 1 etc/* etc/ 3 2 sbin/* usr/sbin/ -
main/linuxmuster-base/branches/testing/debian/postinst
r1075 r1206 69 69 70 70 # check all necessary dirs and links and create them if needed 71 for i in $NETLOGONDIR $PROGSDIR $ CDSDIR $BACKUPDIR $BACKUPMNTPOINT $LOGINCACHE $LOGDIR; do71 for i in $NETLOGONDIR $PROGSDIR $PROGSRWDIR $CDSDIR $BACKUPDIR $BACKUPMNTPOINT $LOGINCACHE $LOGDIR; do 72 72 [ -d "$i" ] || mkdir -p $i 73 73 done … … 177 177 # update slapd.conf 178 178 conf=/etc/ldap/slapd.conf 179 rev=873180 id="$(basename $conf) $rev"181 if ! grep -q "$id" $conf; then179 minrev=873 180 currev="$(grep "# \$Id\:" "$conf" | awk '{ print $4 }')" 181 if [ $minrev -gt $currev ]; then 182 182 confbak=${conf}.dpkg-old 183 183 template=$DYNTPLDIR/15_ldap/$(basename $conf) … … 262 262 find $NETLOGONDIR/ -type d -exec chmod 775 '{}' \; 263 263 chown $ADMINISTRATOR:$DOMADMINS $NETLOGONDIR -R 264 # see #466 265 chown $ADMINISTRATOR:$DOMADMINS $SAMBAHOME 266 chown $ADMINISTRATOR:$DOMADMINS $SAMBAHOME/* 267 chmod 775 $SAMBAHOME/* 264 268 265 269 # linking registry-patches to administrator's home (1.2-15) … … 403 407 fi 404 408 405 # nscd-patch for SophomorixBase.pm (#56 & #64) 406 sophover=2213 407 pkgver="$(dpkg -s sophomorix-base | grep Version | awk '{ print $2 }' | awk -F\- '{ print $1 }' | sed -e 's|\.||g')" 408 if [ "$pkgver" -le "$sophover" ]; then 409 conf=/usr/share/perl5/Sophomorix/SophomorixBase.pm 410 if grep -q "system(\"/usr/sbin/nscd -i passwd -i group -i hosts\")\;" $conf; then 411 echo "Patching SophomorixBase.pm ..." 412 cp $conf $conf.dpkg-bak 413 sed -e 's|system("/usr/sbin/nscd -i passwd -i group -i hosts");|system("/usr/sbin/nscd -i passwd");\ 414 system("/usr/sbin/nscd -i group");\ 415 system("/usr/sbin/nscd -i hosts");|' -i $conf 416 for i in passwd group hosts; do 417 nscd -i $i 418 done 419 fi 420 fi 409 # add writable program share (#466) 410 searchstr="\[pgmw\]" 411 conf=/etc/samba/smb.conf.shares 412 if ! grep -q "$searchstr" $conf; then 413 echo "Adding example share to $conf." 414 cp $conf $conf.dpkg-bak 415 cp $STATICTPLDIR/$conf $conf 416 grep -v "# custom share definitions" $conf.dpkg-bak >> $conf 417 fi 418 searchstr="M: pgmw" 419 conf=$NETLOGONDIR/login.bat 420 if ! grep -q "$searchstr" $conf; then 421 echo "Adding example mapping to $conf." 422 addstr="rem call \\\\\\\\$servername\\\netlogon\\\logon.bat H: %USERNAME% K: pgm M: pgmw R: cdrom" 423 cp $conf $conf.dpkg-bak 424 sed "/^:winnt/a\ 425 $addstr" -i $conf 426 chown $ADMINISTRATOR:$DOMADMINS ${conf}* 427 chmod 664 ${conf}* 428 fi 429 430 # remove local.list not removed by upgrade script 431 if [ -e /var/log/linuxmuster/paedml50-upgrade.log ]; then 432 grep -q /var/cache/apt/archives /etc/apt/sources.list.d/local.list &> /dev/null && rm /etc/apt/sources.list.d/local.list 433 fi 434 435 # remove old paedml50.list 436 conf="/etc/apt/sources.list.d/paedml50.list" 437 [ -e "$conf" ] && mv "$conf" "$conf.dpkg-bak" 438 439 # update backup.conf (#551, #499) 440 conf="$SYSCONFDIR/backup.conf" 441 searchstr="cupsys,cups atftpd,tftpd-hpa" 442 backup=false 443 for i in $searchstr; do 444 search="$(echo "$i" | awk -F\, '{ print $1 }')" 445 replace="$(echo "$i" | awk -F\, '{ print $2 }')" 446 if grep -qw "$search" "$conf"; then 447 echo "Replacing $search with $replace in $conf." 448 [ "$backup" = "false" ] && cp "$conf" "$conf.dpkg-bak" 449 backup=true 450 sed -e "s|$search|$replace|g" -i "$conf" 451 fi 452 done 421 453 422 454 # updating release information -
main/linuxmuster-base/branches/testing/debian/templates
r1064 r1206 136 136 Type: select 137 137 Choices: ${img_choices} 138 Default: linbo 138 139 Description: Imaging-System: 139 140 Waehlen Sie das zu verwendende Imaging-System. -
main/linuxmuster-base/branches/testing/etc/linuxmuster/backup.conf
r787 r1206 1 1 # backup parameters for linuxmuster-back and mondoarchive 2 2 # schmitt@lmz-bw.de 3 # 4 # $Id$ 5 # 3 6 4 7 # the backup device, either a hard disk partition or a nfs share … … 45 48 # - a list of comma separated services 46 49 #services=all 47 services=cups ys,nagios3,postgresql-8.3,mysql,slapd,samba,postfix,apache2,cyrus2.2,rembo,saslauthd,clamav-daemon,rsync,atftpd,nscd,cron,bittorrent,linbo-bittorrent,linbo-multicast50 services=cups,nagios3,postgresql-8.3,mysql,slapd,samba,postfix,apache2,cyrus2.2,rembo,saslauthd,clamav-daemon,rsync,tftpd-hpa,nscd,cron,bittorrent,linbo-bittorrent,linbo-multicast 48 51 49 52 # compression level (0-9), 0 means no compression -
main/linuxmuster-base/branches/testing/sbin/linuxmuster-backup
r1073 r1206 16 16 . $HELPERFUNCTIONS || exit 1 17 17 18 19 18 # default values 19 deplistdir=/etc/mindi/deplist.d 20 netconf=$deplistdir/net.conf 20 21 mondocache=/var/cache/mondo 21 22 cachefiles="difflevel.0" … … 128 129 } # error 129 130 130 131 131 # create mountpoint if necessary 132 132 [ -d "$mountpoint" ] || mkdir -p $mountpoint … … 325 325 326 326 327 # portmap is needed in mondorescue's iso file system 328 [ -d "$deplistdir" ] || mkdir -p $deplistdir 329 [ -e "$netconf" ] || touch "$netconf" 330 if ! grep -q ^/sbin/portmap "$netconf"; then 331 echo "Adding /sbin/portmap to $netconf ..." 332 echo "/sbin/portmap" >> "$netconf" 333 fi 334 335 327 336 # starting mondoarchive 328 337 if [ $RC -eq 0 ]; then 329 nice -n 19 mondoarchive $btypeparam -p $isoprefix $rtypeparam -I "$includedirs" -E "$ mountpoint $excludedirs" -N -d $target -s ${mediasize}m -$compression -L338 nice -n 19 mondoarchive $btypeparam -p $isoprefix $rtypeparam -I "$includedirs" -E "${mountpoint}|${excludedirs}" -N -d $target -s ${mediasize}m -$compression -L 330 339 RC=$? 331 340 fi -
main/linuxmuster-base/branches/testing/sbin/linuxmuster-setup
r1045 r1206 33 33 echo 34 34 exit 1 35 }36 37 # mount installation cdrom38 mount_cdrom() {39 local device=$140 [ -n "$device" ] && device="/dev/$device"41 mount $device /cdrom &> /dev/null42 if grep -q "[op][pa][e][nd]ML Linux" /cdrom/.disk/info &> /dev/null; then43 return 044 else45 umount /cdrom &> /dev/null46 return 147 fi48 35 } 49 36 … … 99 86 --first) 100 87 101 # copy apt configs if not on first boot 102 if [ -z "$firstboot" ]; then 103 cp /etc/apt/sources.list /etc/apt/sources.list.orig 104 cp -a $STATICTPLDIR/etc/apt/* /etc/apt 88 # create local package repository 89 if [ -n "$firstboot" ]; then 90 echo "Creating local repository ..." | tee -a $logfile 91 cd /var/cache/apt/archives 92 apt-ftparchive packages ./ > Packages | tee -a $logfile 93 cd ~ 94 echo "deb file:///var/cache/apt/archives ./" > /etc/apt/sources.list | tee -a $logfile 95 else # renew complete apt configuration 96 echo "Resetting apt configuration." | tee -a $logfile 97 cp -a $STATICTPLDIR/etc/apt/* /etc/apt | tee -a $logfile 105 98 fi 106 99 … … 111 104 id cyrus &> /dev/null || useradd -c "Cyrus Mailsystem User" -d /var/spool/cyrus -g mail -m -r -s /bin/sh cyrus | tee -a $logfile 112 105 113 # mount cdrom 114 if grep -q ^"deb cdrom" /etc/apt/sources.list; then 115 eject -t &> /dev/null 116 for i in "" scd0 scd1 scd2; do 117 if mount_cdrom "$i"; then 118 if stringinstring scd "$i"; then 119 rm -f /dev/cdrom /dev/dvd 120 ln -s /dev/$i /dev/cdrom 121 ln -s /dev/$i /dev/dvd 122 cp /etc/fstab /etc/fstab.linuxmuster-setup.first 123 grep -v cdrom /etc/fstab.linuxmuster-setup.first > /etc/fstab 124 echo "/dev/$i /media/cdrom0 udf,iso9660 user,noauto 0 0" >> /etc/fstab 125 fi 126 cdrom_mounted=yes 127 break 128 fi 129 done 130 if [ -z "$cdrom_mounted" ]; then 131 echo "Fatal: Cannot mount install cd!" 132 exit 1 133 fi 106 # install paedml release key 107 relkey="$CACHEDIR/paedml-release.asc" 108 if [ -e "$relkey" ]; then 109 echo "Installing paedml release key." | tee -a $logfile 110 apt-key add "$relkey" | tee -a $logfile 134 111 fi 135 112 136 # install paedml release key137 [ -e /cdrom/paedml-release.asc ] && apt-key add /cdrom/paedml-release.asc138 139 113 # check tasks 140 for i in common server desktop imaging-linbo imaging-rembo; do114 for i in common server imaging-linbo; do 141 115 if [ ! -s "/usr/share/linuxmuster/tasks/$i" ]; then 142 echo "Error: Taskfile $i not found!" 116 echo "Error: Taskfile $i not found!" | tee -a $logfile 143 117 exit 1 144 118 fi … … 147 121 # force apt to do ugly things during upgrade 148 122 echo 'DPkg::Options {"--force-confold";"--force-confdef";"--force-bad-verify";"--force-overwrite";};' > /etc/apt/apt.conf.d/99upgrade 123 echo 'aptitude::CmdLine::Ignore-Trust-Violations "true";' >> /etc/apt/apt.conf.d/99upgrade 149 124 150 125 # check for installable non-free packages … … 153 128 154 129 # tweaking buggy sophomorix, install postgresql first 130 aptitude update | tee -a $logfile 155 131 DEBIAN_FRONTEND=noninteractive aptitude -y install postgresql | tee -a $logfile 156 132 #DEBIAN_FRONTEND=noninteractive aptitude -y install postgresql-8.1 | tee -a $logfile 157 133 158 134 # installing depending task 159 for i in common server ; do135 for i in common server imaging-linbo; do 160 136 task=`cat /usr/share/linuxmuster/tasks/$i` 161 137 DEBIAN_FRONTEND=noninteractive aptitude -y install $task | tee -a $logfile … … 179 155 180 156 # remove upgrade cheat 181 rm /etc/apt/apt.conf.d/99upgrade 157 rm -f /etc/apt/apt.conf.d/99upgrade 158 rm -f /var/cache/apt/archives/Packages 182 159 183 160 ;; -
main/linuxmuster-base/branches/testing/sbin/linuxmuster-task
- Property svn:keywords changed from Id to Id Revision
r666 r1206 4 4 # installs software tasks 5 5 # 6 # 24.06.2008 7 # Thomas Schmitt <schmitt@lmz-bw.de> 6 # $Id$ 8 7 # 9 8 … … 49 48 if [ -n "$unattended" ]; then 50 49 51 echo 'DPkg::Options {"--force-confold";"--force-confdef";};' > /etc/apt/apt.conf.d/9 9upgrade50 echo 'DPkg::Options {"--force-confold";"--force-confdef";};' > /etc/apt/apt.conf.d/98linuxmuster-task 52 51 opt="-y $opt" 53 52 … … 57 56 $cmd $opt $taskpackages ; RC=$? 58 57 59 [ -n "$unattended" ] && rm /etc/apt/apt.conf.d/9 9upgrade58 [ -n "$unattended" ] && rm /etc/apt/apt.conf.d/98linuxmuster-task 60 59 61 60 exit $RC -
main/linuxmuster-base/branches/testing/share/config/dist.conf
- Property svn:keywords changed from Id to Id Revision
r1023 r1206 3 3 # paths related to the distribution 4 4 # don't change this, any changes will be overwritten by package upgrade 5 # 6 # $Id$ 7 # 5 8 6 9 # Version and Name 7 CODENAME=" Glufamichel"8 DISTMAJORVERSION="5. 0"9 DISTMINORVERSION=" 1"10 CODENAME="NiveauLINBO" 11 DISTMAJORVERSION="5.1" 12 DISTMINORVERSION="0" 10 13 DISTFULLVERSION="$DISTMAJORVERSION.$DISTMINORVERSION" 14 CDMAJORVERSION="5.1" 15 CDMINORVERSION="0" 16 CDVERSION="$CDMAJORVERSION.$CDMINORVERSION" 11 17 NONFREEDISTNAME="paedML Linux" 12 18 FREEDISTNAME="openML Linux" 13 NONFREECDNAME=$(echo $NONFREEDISTNAME | awk '{ print $1 }')$(echo $ DISTFULLVERSION | sed -e 's/\.//g')_i386.iso14 FREECDNAME=$(echo $FREEDISTNAME | awk '{ print $1 }')$(echo $ DISTFULLVERSION | sed -e 's/\.//g')_i386.iso19 NONFREECDNAME=$(echo $NONFREEDISTNAME | awk '{ print $1 }')$(echo $CDVERSION | sed -e 's/\.//g')_i386.iso 20 FREECDNAME=$(echo $FREEDISTNAME | awk '{ print $1 }')$(echo $CDVERSION | sed -e 's/\.//g')_i386.iso 15 21 ISOURL=http://lml.support-netz.de/open/iso 16 22 … … 118 124 NETLOGONDIR="$SAMBAHOME/netlogon" 119 125 PROGSDIR="$SAMBAHOME/progs" 126 PROGSRWDIR="$SAMBAHOME/pgmw" 120 127 CDSDIR="$SAMBAHOME/cds" 121 128 -
main/linuxmuster-base/branches/testing/share/scripts/linuxmuster-config
r1073 r1206 25 25 oldvalues=yes 26 26 fi 27 28 # check which imaging software is available29 linbo=`aptitude search linuxmuster-linbo`30 rembo=`aptitude search myshn`31 27 32 28 if [ "$1" = "--first" ]; then … … 163 159 164 160 165 # firewall 166 db_fset linuxmuster-base/fwconfig seen false167 db_input $PRIORITY linuxmuster-base/fwconfig || true168 db_go169 db_get linuxmuster-base/fwconfig || true170 fwconfig=$RET161 # firewall (obsolet) 162 #db_fset linuxmuster-base/fwconfig seen false 163 #db_input $PRIORITY linuxmuster-base/fwconfig || true 164 #db_go 165 #db_get linuxmuster-base/fwconfig || true 166 #fwconfig=$RET 171 167 # check if fwconfig has been modified 172 if [ "$oldvalues" = "yes" ]; then 173 [ "$fwconfig" = "$fwconfig_old" ] || ask_ipcop=yes 174 fi 175 176 168 #if [ "$oldvalues" = "yes" ]; then 169 # [ "$fwconfig" = "$fwconfig_old" ] || ask_ipcop=yes 170 #fi 177 171 # configure external network only if fwconfig is integrated or setup is in modify mode and fwconfig has not changed 178 if [ "$fwconfig" = "integrated" ]; then 179 externconfig 180 else 181 if [ "$1" = "--modify" ]; then 182 [ "$fwconfig" = "$fwconfig_old" ] && externconfig 183 fi 184 fi 172 #if [ "$fwconfig" = "integrated" ]; then 173 # externconfig 174 #else 175 # if [ "$1" = "--modify" ]; then 176 # [ "$fwconfig" = "$fwconfig_old" ] && externconfig 177 # fi 178 #fi 179 180 # firewall is always dedicated 181 fwconfig=dedicated 182 db_set linuxmuster-base/fwconfig $fwconfig || true 183 [ "$1" = "--modify" ] && externconfig 185 184 186 185 … … 196 195 197 196 197 198 # check whether rembo is available 199 rembo=`aptitude search myshn` 200 [ "$1" = "--first" ] && rembo="" 201 198 202 # imaging system 199 imaging=" "200 if [ [ -n "$linbo" && -n "$rembo" ]]; then203 imaging="linbo" 204 if [ -n "$rembo" ]; then 201 205 202 206 IMG_CHOICES="linbo, rembo" 203 207 IMG_DESC="LINBO [linbo] und Rembo/mySHN (tm) [rembo]." 204 205 elif [ -n "$linbo" ]; then206 207 imaging=linbo208 209 elif [ -n "$rembo" ]; then210 211 imaging=rembo212 208 213 209 fi -
main/linuxmuster-base/branches/testing/share/scripts/linuxmuster-patch
r699 r1206 29 29 done 30 30 31 # installing apropriate imaging task32 if [[ "$imaging" = "linbo" || "$imaging" = "rembo" || "$imaging" = "tivoli" ]]; then33 echo 'DPkg::Options {"--force-confold";"--force-confdef";"--force-bad-verify";"--force-overwrite";};' > /etc/apt/apt.conf.d/99upgrade34 task=`cat /usr/share/linuxmuster/tasks/imaging-$imaging`35 export DEBIAN_FRONTEND=noninteractive36 echo -n "Ja\nJa\n" | aptitude -y install $task | tee -a $LOGDIR/setup.log37 rm /etc/apt/apt.conf.d/99upgrade38 fi39 40 31 # escaping special characters in passwords 41 32 esc_spec_chars "$adminpw" … … 51 42 adminpw_md5=`echo -n $adminpw | md5sum | cut -c -32` 52 43 53 # reading old values44 # only in modify mode 54 45 if [ "$1" != "--first" ]; then 55 echo "Checking for modified values ..." 56 . $OLDVALUES || exit 1 57 rm $OLDVALUES 46 # to be sure imaging packages are installed in case of imaging change 47 linuxmuster-task --unattended --install=imaging-$imaging 48 49 # reading old values 50 echo "Checking for modified values ..." 51 . $OLDVALUES || exit 1 52 rm $OLDVALUES 58 53 fi 59 54 -
main/linuxmuster-base/branches/testing/share/scripts/remoteadmin.sh
r827 r1206 111 111 112 112 create_account() { 113 useradd -c "Remote Admin" -d $ADMINSHOME/$REMOTEADMIN -r -s /bin/bash $REMOTEADMIN 114 mkdir -p $ADMINSHOME/$REMOTEADMIN 115 chown $REMOTEADMIN:$REMOTEADMIN $ADMINSHOME/$REMOTEADMIN -R 116 chmod 700 $ADMINSHOME/$REMOTEADMIN 117 passwd $REMOTEADMIN 118 add_to_sudoers 119 do_accessconf add 113 delgroup $REMOTEADMIN &> /dev/null 114 if addgroup --system $REMOTEADMIN; then 115 useradd -c "Remote Admin" -g $REMOTEADMIN -d $ADMINSHOME/$REMOTEADMIN -r -s /bin/bash $REMOTEADMIN 116 mkdir -p $ADMINSHOME/$REMOTEADMIN 117 chown $REMOTEADMIN:$REMOTEADMIN $ADMINSHOME/$REMOTEADMIN -R 118 chmod 700 $ADMINSHOME/$REMOTEADMIN 119 [ "$NOPASSWD" = "yes" ] || passwd $REMOTEADMIN 120 add_to_sudoers 121 do_accessconf add 122 else 123 echo "Failed to create system group $REMOTEADMIN!" 124 return 1 125 fi 120 126 } 121 127 … … 130 136 else 131 137 id $REMOTEADMIN &> /dev/null && deluser $REMOTEADMIN 138 delgroup $REMOTEADMIN &> /dev/null 132 139 fi 133 140 rm -rf $ADMINSHOME/$REMOTEADMIN -
main/linuxmuster-base/branches/testing/share/scripts/update-logins.sh
r1062 r1206 35 35 # save samba status 36 36 status=$LOGINCACHE/.smbstatus.$$ 37 $SMBSTATUS -b > $status37 $SMBSTATUS -b | sed 's|__ffff_||g' > $status 38 38 39 39 # process given rooms -
main/linuxmuster-base/branches/testing/share/tasks/imaging-linbo
r787 r1206 1 atftpd 1 tftpd-hpa 2 2 syslinux 3 3 udpcast -
main/linuxmuster-base/branches/testing/share/tasks/server
r819 r1206 17 17 cyrus-pop3d-2.2 18 18 dhcp3-server 19 firmware-linux-free 20 firmware-linux-nonfree 19 21 foomatic-filters-ppds 20 22 gollem -
main/linuxmuster-base/branches/testing/var/config-dynamic/00_stop-services/prepatch
r956 r1206 3 3 # stop all relevant services 4 4 5 services="linuxmuster-base atftpdbittorrent rsync linbo-bittorrent \5 services="linuxmuster-base tftpd-hpa bittorrent rsync linbo-bittorrent \ 6 6 linbo-multicast nagios3 atd cron rembo quota apache2 cups \ 7 7 clamav-freshclam clamav-daemon cyrus2.2 postfix saslauthd amavis \ … … 11 11 12 12 # make sure they are enabled to be able to shut them down 13 [ -e /etc/default/ atftpd ] && sed -e 's/^USE_INETD=.*/USE_INETD=false/' -i /etc/default/atftpd13 [ -e /etc/default/tftpd-hpa ] && sed -e 's/^RUN_DAEMON=.*/RUN_DAEMON=yes/' -i /etc/default/tftpd-hpa 14 14 [ -e /etc/default/rsync ] && sed -e 's/^RSYNC_ENABLE=.*/RSYNC_ENABLE=true/' -i /etc/default/rsync 15 15 [ -e /etc/default/rembo ] && sed -e 's/^START_REMBO=.*/START_REMBO=yes/' -i /etc/default/rembo -
main/linuxmuster-base/branches/testing/var/config-dynamic/01_network/postpatch
r787 r1206 4 4 # start networking 5 5 /etc/init.d/linuxmuster-nic-setup assign 6 /etc/ rcS.d/S40networkingstart6 /etc/init.d/networking restart 7 7 8 8 # set host and domain name -
main/linuxmuster-base/branches/testing/var/config-dynamic/17_admins/login.bat
r787 r1206 4 4 5 5 :winnt 6 rem call \\@@servername@@\netlogon\logon.bat H: %USERNAME% K: pgm M: pgmw R: cdrom 6 7 call \\@@servername@@\netlogon\logon.bat H: %USERNAME% K: pgm R: cdrom 7 8 goto ende -
main/linuxmuster-base/branches/testing/var/config-dynamic/20_moodle/moodle.psql
r787 r1206 2 2 -- PostgreSQL database dump 3 3 -- 4 5 SET client_encoding = 'UTF8'; 6 SET standard_conforming_strings = off; 7 SET check_function_bodies = false; 8 SET client_min_messages = warning; 9 SET escape_string_warning = off; 10 11 -- 12 -- Name: moodle; Type: DATABASE; Schema: -; Owner: moodle 13 -- 14 15 CREATE DATABASE moodle WITH TEMPLATE = template0 ENCODING = 'UTF8'; 16 17 18 ALTER DATABASE moodle OWNER TO moodle; 19 20 \connect moodle 4 21 5 22 SET client_encoding = 'UTF8'; … … 1478 1495 -- 1479 1496 1480 SELECT pg_catalog.setval('mdl_capabilities_id_seq', 28 5, true);1497 SELECT pg_catalog.setval('mdl_capabilities_id_seq', 286, true); 1481 1498 1482 1499 … … 1847 1864 -- 1848 1865 1849 SELECT pg_catalog.setval('mdl_config_id_seq', 4 46, true);1866 SELECT pg_catalog.setval('mdl_config_id_seq', 453, true); 1850 1867 1851 1868 … … 1895 1912 -- 1896 1913 1897 SELECT pg_catalog.setval('mdl_config_plugins_id_seq', 14 3, true);1914 SELECT pg_catalog.setval('mdl_config_plugins_id_seq', 144, true); 1898 1915 1899 1916 … … 2452 2469 defaultsortdir smallint DEFAULT 0 NOT NULL, 2453 2470 editany smallint DEFAULT 0 NOT NULL, 2454 notification bigint 2471 notification bigint DEFAULT 0 NOT NULL 2455 2472 ); 2456 2473 … … 6933 6950 -- 6934 6951 6935 SELECT pg_catalog.setval('mdl_log_id_seq', 7, true);6952 SELECT pg_catalog.setval('mdl_log_id_seq', 10, true); 6936 6953 6937 6954 … … 7089 7106 7090 7107 SELECT pg_catalog.setval('mdl_message_read_id_seq', 1, false); 7108 7109 7110 -- 7111 -- Name: mdl_mindmap; Type: TABLE; Schema: public; Owner: moodle; Tablespace: 7112 -- 7113 7114 CREATE TABLE mdl_mindmap ( 7115 id bigint NOT NULL, 7116 course bigint DEFAULT 0 NOT NULL, 7117 name character varying(255) DEFAULT ''::character varying NOT NULL, 7118 intro text, 7119 introformat smallint DEFAULT 0 NOT NULL, 7120 userid bigint NOT NULL, 7121 editable smallint NOT NULL, 7122 xmldata text NOT NULL, 7123 timecreated bigint DEFAULT 0 NOT NULL, 7124 timemodified bigint DEFAULT 0 NOT NULL 7125 ); 7126 7127 7128 ALTER TABLE public.mdl_mindmap OWNER TO moodle; 7129 7130 -- 7131 -- Name: TABLE mdl_mindmap; Type: COMMENT; Schema: public; Owner: moodle 7132 -- 7133 7134 COMMENT ON TABLE mdl_mindmap IS 'Table for Moodle-Mindmaps'; 7135 7136 7137 -- 7138 -- Name: mdl_mindmap_id_seq; Type: SEQUENCE; Schema: public; Owner: moodle 7139 -- 7140 7141 CREATE SEQUENCE mdl_mindmap_id_seq 7142 START WITH 1 7143 INCREMENT BY 1 7144 NO MAXVALUE 7145 NO MINVALUE 7146 CACHE 1; 7147 7148 7149 ALTER TABLE public.mdl_mindmap_id_seq OWNER TO moodle; 7150 7151 -- 7152 -- Name: mdl_mindmap_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: moodle 7153 -- 7154 7155 ALTER SEQUENCE mdl_mindmap_id_seq OWNED BY mdl_mindmap.id; 7156 7157 7158 -- 7159 -- Name: mdl_mindmap_id_seq; Type: SEQUENCE SET; Schema: public; Owner: moodle 7160 -- 7161 7162 SELECT pg_catalog.setval('mdl_mindmap_id_seq', 1, false); 7091 7163 7092 7164 … … 7266 7338 public_key_expires bigint DEFAULT 0 NOT NULL, 7267 7339 transport smallint DEFAULT 0 NOT NULL, 7268 portno smallint DEFAULT 0 NOT NULL,7269 7340 last_connect_time bigint DEFAULT 0 NOT NULL, 7270 7341 last_log_id bigint DEFAULT 0 NOT NULL, 7271 7342 force_theme smallint DEFAULT 0 NOT NULL, 7272 7343 theme character varying(100), 7273 applicationid bigint DEFAULT 1 NOT NULL 7344 applicationid bigint DEFAULT 1 NOT NULL, 7345 portno integer DEFAULT 0 NOT NULL 7274 7346 ); 7275 7347 … … 7718 7790 -- 7719 7791 7720 SELECT pg_catalog.setval('mdl_modules_id_seq', 2 2, true);7792 SELECT pg_catalog.setval('mdl_modules_id_seq', 23, true); 7721 7793 7722 7794 … … 10293 10365 -- 10294 10366 10295 SELECT pg_catalog.setval('mdl_role_capabilities_id_seq', 7 19, true);10367 SELECT pg_catalog.setval('mdl_role_capabilities_id_seq', 720, true); 10296 10368 10297 10369 … … 14451 14523 -- 14452 14524 14525 ALTER TABLE mdl_mindmap ALTER COLUMN id SET DEFAULT nextval('mdl_mindmap_id_seq'::regclass); 14526 14527 14528 -- 14529 -- Name: id; Type: DEFAULT; Schema: public; Owner: moodle 14530 -- 14531 14453 14532 ALTER TABLE mdl_mnet_application ALTER COLUMN id SET DEFAULT nextval('mdl_mnet_application_id_seq'::regclass); 14454 14533 … … 15382 15461 1 activity_modules 2007101509 0 0 1 0 15383 15462 2 admin 2007101509 0 0 1 0 15384 3 admin_alert 2009062602 0 0 1 115385 15463 4 admin_bookmarks 2007101509 0 0 1 0 15386 15464 5 admin_tree 2007101509 0 0 1 0 … … 15391 15469 10 course_list 2007101509 0 0 1 0 15392 15470 11 course_summary 2007101509 0 0 1 0 15393 12 exabis_eportfolio 2009051901 0 0 1 015394 15471 13 feedback 2009050701 0 0 1 0 15395 15472 14 glossary_random 2007101509 0 0 1 1 … … 15428 15505 49 wiki_updated 2004081200 0 0 1 0 15429 15506 50 wiki_wanted 2004081200 0 0 1 0 15430 21 mrbs 2009061900 300 1266597902 1 0 15431 28 rss_client 2007101511 300 1266597902 1 1 15507 21 mrbs 2009061900 300 1310133902 1 0 15508 28 rss_client 2007101511 300 1310133901 1 1 15509 3 admin_alert 2010052401 0 0 1 1 15510 12 exabis_eportfolio 2009121801 0 0 1 0 15432 15511 \. 15433 15512 … … 15572 15651 15573 15652 COPY mdl_cache_flags (id, flagtype, name, timemodified, value, expiry) FROM stdin; 15574 1 accesslib/dirtycontexts /1 1266595451 1 126660265115575 15653 \. 15576 15654 … … 15874 15952 284 report/security:view read 10 report/security 2 15875 15953 285 report/unittest:view read 10 report/unittest 32 15954 286 moodle/restore:createuser write 10 moodle 24 15876 15955 \. 15877 15956 … … 15973 16052 54 filter_mediaplugin_enable_rm 1 15974 16053 55 filter_mediaplugin_enable_youtube 0 15975 56 filter_tex_latexpreamble \\usepackage[latin1]{inputenc}\n \\usepackage{amsmath}\n \\usepackage{amsfonts}\n \\RequirePackage{amsmath,amssymb,latexsym}\n15976 16054 57 filter_tex_latexbackground #FFFFFF 15977 16055 58 filter_tex_density 120 … … 15999 16077 91 cookiesecure 0 16000 16078 92 cookiehttponly 0 16001 93 regenloginsession 016002 16079 94 excludeoldflashclients 10.0.12 16003 16080 95 restrictmodulesfor none … … 16054 16131 32 autolang 0 16055 16132 3 auth ldap 16133 56 filter_tex_latexpreamble \\usepackage[latin1]{inputenc}\n\\usepackage{amsmath}\n\\usepackage{amsfonts}\n\\RequirePackage{amsmath,amssymb,latexsym}\n 16056 16134 126 emoticons :-){:}smiley{;}:){:}smiley{;}:-D{:}biggrin{;};-){:}wink{;}:-/{:}mixed{;}V-.{:}thoughtful{;}:-P{:}tongueout{;}B-){:}cool{;}^-){:}approve{;}8-){:}wideeyes{;}:o){:}clown{;}:-({:}sad{;}:({:}sad{;}8-.{:}shy{;}:-I{:}blush{;}:-X{:}kiss{;}8-o{:}surprise{;}P-|{:}blackeye{;}8-[{:}angry{;}xx-P{:}dead{;}|-.{:}sleepy{;}}-]{:}evil{;}(h){:}heart{;}(heart){:}heart{;}(y){:}yes{;}(n){:}no{;}(martin){:}martin{;}( ){:}egg 16057 16135 127 formatstringstriptags 1 … … 16127 16205 197 mnet_localhost_id 1 16128 16206 198 mnet_all_hosts_id 2 16129 199 version 200710157016130 200 release 1.9.7+ (Build: 20091209)16131 16207 201 assignment_type_online_version 2005042900 16132 16208 202 exercise_initialdisable 1 … … 16187 16263 257 enrol_paypal_version 2006092200 16188 16264 258 gradeexport_ods_version 2007092701 16265 200 release 1.9.12+ (Build: 20110518) 16189 16266 259 gradeexport_txt_version 2007092700 16190 16267 260 gradeexport_xls_version 2007092700 … … 16207 16284 277 rolesactive 1 16208 16285 278 digestmailtimelast 1266595502 16209 279 forum_lastreadclean 126659550216210 280 scorm_updatetimelast 126659550216211 281 lastexpirynotify 2010021916212 16286 282 guestroleid 6 16213 16287 283 creatornewroleid 3 … … 16311 16385 381 resource_websearch http://google.com/ 16312 16386 382 resource_defaulturl http:// 16387 279 forum_lastreadclean 1310133902 16388 281 lastexpirynotify 20110708 16313 16389 383 resource_secretphrase 16314 384 resource_allowlocalfiles 016315 16390 385 resource_popup 16316 16391 386 resource_popupresizable checked … … 16375 16450 445 supportemail wwwadmin@@@domainname@@ 16376 16451 446 registerauth 16452 280 scorm_updatetimelast 1310133901 16453 447 filter_mediaplugin_enable_ogv 1 16454 448 filter_mediaplugin_enable_ogg 1 16455 199 version 2007101591.03 16456 449 grade_report_overview_showtotalsifcontainhidden 0 16457 450 grade_report_user_showtotalsifcontainhidden 0 16458 451 feedback_allowfullanonymous 0 16459 452 filter_tex_convertformat gif 16460 453 regenloginsession 1 16377 16461 \. 16378 16462 … … 16526 16610 142 auth/ldap field_updateremote_address 0 16527 16611 143 auth/ldap field_lock_address unlocked 16612 144 scorm grademethodfixed 1 16528 16613 \. 16529 16614 … … 16560 16645 16561 16646 COPY mdl_course (id, category, sortorder, password, fullname, shortname, idnumber, summary, format, showgrades, modinfo, newsitems, teacher, teachers, student, students, guest, startdate, enrolperiod, numsections, marker, maxbytes, showreports, visible, hiddensections, groupmode, groupmodeforce, defaultgroupingid, lang, theme, cost, currency, timecreated, timemodified, metacourse, requested, restrictmodules, expirynotify, expirythreshold, notifystudents, enrollable, enrolstartdate, enrolenddate, enrol, defaultrole) FROM stdin; 16562 1 0 0 @@schoolname@@ @@location@@ @@schoolname@@ site 1 a:0:{} 3 Teacher Teachers Student Students 0 0 0 0 0 0 0 1 0 0 0 0 USD 0 1266595738 0 0 0 0 0 0 1 0 0 016647 1 0 1000 @@schoolname@@ @@location@@ @@schoolname@@ site 1 a:0:{} 3 Teacher Teachers Student Students 0 0 0 0 0 0 0 1 0 0 0 0 USD 0 1266595738 0 0 0 0 0 0 1 0 0 0 16563 16648 \. 16564 16649 … … 17273 17358 17274 17359 COPY mdl_log (id, "time", userid, ip, course, module, cmid, action, url, info) FROM stdin; 17275 1 1266595683 2 10.16.1.10 1 user 0 update view.php?id=2&course=117276 2 1266595739 2 10.16.1.10 1 course 0 view view.php?id=1 117277 3 1266595783 2 10.16.1.10 1 user 0 logout view.php?id=2&course=1 217278 4 1266595797 2 10.16.1.10 1 user 0 login view.php?id=0&course=1 217279 5 1266595797 2 10.16.1.10 1 course 0 view view.php?id=1 117280 6 1266596581 2 10.16.1.10 1 user 0 view view.php?id=2&course=1 217281 7 1266596615 2 10.16.1.10 1 user 0 logout view.php?id=2&course=1 217282 17360 \. 17283 17361 … … 17450 17528 17451 17529 -- 17530 -- Data for Name: mdl_mindmap; Type: TABLE DATA; Schema: public; Owner: moodle 17531 -- 17532 17533 COPY mdl_mindmap (id, course, name, intro, introformat, userid, editable, xmldata, timecreated, timemodified) FROM stdin; 17534 \. 17535 17536 17537 -- 17452 17538 -- Data for Name: mdl_mnet_application; Type: TABLE DATA; Schema: public; Owner: moodle 17453 17539 -- … … 17479 17565 -- 17480 17566 17481 COPY mdl_mnet_host (id, deleted, wwwroot, ip_address, name, public_key, public_key_expires, transport, portno, last_connect_time, last_log_id, force_theme, theme, applicationid) FROM stdin;17482 1 0 /moodle 10.16.1.1 0 0 0 0 0 0 \N 117483 2 0 All Hosts 0 0 0 0 0 0 \N 117567 COPY mdl_mnet_host (id, deleted, wwwroot, ip_address, name, public_key, public_key_expires, transport, last_connect_time, last_log_id, force_theme, theme, applicationid, portno) FROM stdin; 17568 1 0 /moodle 10.16.1.1 0 0 0 0 0 \N 1 0 17569 2 0 All Hosts 0 0 0 0 0 \N 1 0 17484 17570 \. 17485 17571 … … 17506 17592 17507 17593 COPY mdl_mnet_rpc (id, function_name, xmlrpc_path, parent_type, parent, enabled, help, profile) FROM stdin; 17508 7 update_enrolments auth/mnet/auth.php/update_enrolments auth mnet 0 Invoke this function _on_ the IDP to update it with enrolment info local to \\n the SP right after calling user_authorise() \\n \\n Normally called by the SP after calling a:3:{i:0;a:2:{s:4:"type";s:7:"boolean";s:11:"description";N;}i:1;a:2:{s:4:"type";s:6:"string";s:11:"description";s:23:"username - The username";}i:2;a:2:{s:4:"type";s:6:"string";s:11:"description";s:77:"courses - Assoc array of courses following the structure of mnet_enrol_course";}} 17594 1 user_authorise auth/mnet/auth.php/user_authorise auth mnet 0 Return user data for the provided token, compare with user_agent string. a:3:{i:0;a:2:{s:4:"type";s:5:"array";s:11:"description";s:44:"$userdata Array of user info for remote host";}i:1;a:2:{s:4:"type";s:6:"string";s:11:"description";s:45:"token - The unique ID provided by remotehost.";}i:2;a:2:{s:4:"type";s:6:"string";s:11:"description";s:30:"useragent - User Agent string.";}} 17595 2 keepalive_server auth/mnet/auth.php/keepalive_server auth mnet 0 Receives an array of usernames from a remote machine and prods their\\n sessions to keep them alive a:2:{i:0;a:2:{s:4:"type";s:6:"string";s:11:"description";s:30:"\\"All ok\\" or an error message";}i:1;a:2:{s:4:"type";s:5:"array";s:11:"description";s:29:"array - An array of usernames";}} 17596 3 kill_children auth/mnet/auth.php/kill_children auth mnet 0 The IdP uses this function to kill child sessions on other hosts a:3:{i:0;a:2:{s:4:"type";s:6:"string";s:11:"description";s:39:"A plaintext report of what has happened";}i:1;a:2:{s:4:"type";s:6:"string";s:11:"description";s:39:"username - Username for session to kill";}i:2;a:2:{s:4:"type";s:6:"string";s:11:"description";s:47:"useragent - SHA1 hash of user agent to look for";}} 17597 4 refresh_log auth/mnet/auth.php/refresh_log auth mnet 0 Receives an array of log entries from an SP and adds them to the mnet_log\\n table a:2:{i:0;a:2:{s:4:"type";s:6:"string";s:11:"description";s:30:"\\"All ok\\" or an error message";}i:1;a:2:{s:4:"type";s:5:"array";s:11:"description";s:29:"array - An array of usernames";}} 17598 5 fetch_user_image auth/mnet/auth.php/fetch_user_image auth mnet 0 Returns the user's image as a base64 encoded string. a:2:{i:0;a:2:{s:4:"type";s:6:"string";s:11:"description";s:17:"The encoded image";}i:1;a:2:{s:4:"type";s:6:"string";s:11:"description";s:29:"username - The id of the user";}} 17599 6 fetch_theme_info auth/mnet/auth.php/fetch_theme_info auth mnet 0 Returns the theme information and logo url as strings. a:1:{i:0;a:2:{s:4:"type";s:6:"string";s:11:"description";s:14:"The theme info";}} 17600 7 update_enrolments auth/mnet/auth.php/update_enrolments auth mnet 0 Invoke this function _on_ the IDP to update it with enrolment info local to\\n the SP right after calling user_authorise()\\n \\n Normally called by the SP after calling a:3:{i:0;a:2:{s:4:"type";s:7:"boolean";s:11:"description";N;}i:1;a:2:{s:4:"type";s:6:"string";s:11:"description";s:23:"username - The username";}i:2;a:2:{s:4:"type";s:6:"string";s:11:"description";s:77:"courses - Assoc array of courses following the structure of mnet_enrol_course";}} 17601 8 keepalive_client auth/mnet/auth.php/keepalive_client auth mnet 0 Poll the IdP server to let it know that a user it has authenticated is still\\n online a:1:{i:0;a:2:{s:4:"type";s:6:"string";s:11:"description";N;}} 17602 9 kill_child auth/mnet/auth.php/kill_child auth mnet 0 TODO:Untested When the IdP requests that child sessions are terminated,\\n this function will be called on each of the child hosts. The machine that\\n calls the function (over xmlrpc) provides us with the mnethostid we need. a:3:{i:0;a:2:{s:4:"type";s:7:"boolean";s:11:"description";s:15:"True on success";}i:1;a:2:{s:4:"type";s:6:"string";s:11:"description";s:39:"username - Username for session to kill";}i:2;a:2:{s:4:"type";s:6:"string";s:11:"description";s:47:"useragent - SHA1 hash of user agent to look for";}} 17603 10 available_courses enrol/mnet/enrol.php/available_courses enrol mnet 0 Does Foo a:1:{i:0;a:2:{s:4:"type";s:7:"boolean";s:11:"description";s:47:"Whether the user can login from the remote host";}} 17604 11 user_enrolments enrol/mnet/enrol.php/user_enrolments enrol mnet 0 No description given. a:2:{i:0;a:2:{s:4:"type";s:4:"void";s:11:"description";s:0:"";}i:1;s:6:"userid";} 17509 17605 12 enrol_user enrol/mnet/enrol.php/enrol_user enrol mnet 0 Enrols user to course with the default role a:3:{i:0;a:2:{s:4:"type";s:7:"boolean";s:11:"description";s:41:"Whether the enrolment has been successful";}i:1;a:2:{s:4:"type";s:6:"string";s:11:"description";s:37:"user - The username of the remote use";}i:2;a:2:{s:4:"type";s:3:"int";s:11:"description";s:37:"courseid - The id of the local course";}} 17510 17606 13 unenrol_user enrol/mnet/enrol.php/unenrol_user enrol mnet 0 Unenrol a user from a course a:3:{i:0;a:2:{s:4:"type";s:7:"boolean";s:11:"description";s:47:"Whether the user can login from the remote host";}i:1;a:2:{s:4:"type";s:6:"string";s:11:"description";s:23:"username - The username";}i:2;a:2:{s:4:"type";s:3:"int";s:11:"description";s:37:"courseid - The id of the local course";}} 17511 17607 14 course_enrolments enrol/mnet/enrol.php/course_enrolments enrol mnet 0 Get a list of users from the client server who are enrolled in a course a:3:{i:0;a:2:{s:4:"type";s:5:"array";s:11:"description";s:39:"Array of usernames who are homed on the";}i:1;a:2:{s:4:"type";s:3:"int";s:11:"description";s:24:"courseid - The Course ID";}i:2;a:2:{s:4:"type";s:6:"string";s:11:"description";s:47:"roles - Comma-separated list of role shortnames";}} 17512 1 user_authorise auth/mnet/auth.php/user_authorise auth mnet 0 Return user data for the provided token, compare with user_agent string. a:3:{i:0;a:2:{s:4:"type";s:5:"array";s:11:"description";s:44:"$userdata Array of user info for remote host";}i:1;a:2:{s:4:"type";s:6:"string";s:11:"description";s:45:"token - The unique ID provided by remotehost.";}i:2;a:2:{s:4:"type";s:6:"string";s:11:"description";s:30:"useragent - User Agent string.";}}17513 2 keepalive_server auth/mnet/auth.php/keepalive_server auth mnet 0 Receives an array of usernames from a remote machine and prods their \\n sessions to keep them alive a:2:{i:0;a:2:{s:4:"type";s:6:"string";s:11:"description";s:30:""All ok" or an error message";}i:1;a:2:{s:4:"type";s:5:"array";s:11:"description";s:29:"array - An array of usernames";}}17514 3 kill_children auth/mnet/auth.php/kill_children auth mnet 0 The IdP uses this function to kill child sessions on other hosts a:3:{i:0;a:2:{s:4:"type";s:6:"string";s:11:"description";s:39:"A plaintext report of what has happened";}i:1;a:2:{s:4:"type";s:6:"string";s:11:"description";s:39:"username - Username for session to kill";}i:2;a:2:{s:4:"type";s:6:"string";s:11:"description";s:47:"useragent - SHA1 hash of user agent to look for";}}17515 4 refresh_log auth/mnet/auth.php/refresh_log auth mnet 0 Receives an array of log entries from an SP and adds them to the mnet_log \\n table a:2:{i:0;a:2:{s:4:"type";s:6:"string";s:11:"description";s:30:""All ok" or an error message";}i:1;a:2:{s:4:"type";s:5:"array";s:11:"description";s:29:"array - An array of usernames";}}17516 5 fetch_user_image auth/mnet/auth.php/fetch_user_image auth mnet 0 Returns the user's image as a base64 encoded string. a:2:{i:0;a:2:{s:4:"type";s:6:"string";s:11:"description";s:17:"The encoded image";}i:1;a:2:{s:4:"type";s:6:"string";s:11:"description";s:29:"username - The id of the user";}}17517 6 fetch_theme_info auth/mnet/auth.php/fetch_theme_info auth mnet 0 Returns the theme information and logo url as strings. a:1:{i:0;a:2:{s:4:"type";s:6:"string";s:11:"description";s:14:"The theme info";}}17518 8 keepalive_client auth/mnet/auth.php/keepalive_client auth mnet 0 Poll the IdP server to let it know that a user it has authenticated is still \\n online a:1:{i:0;a:2:{s:4:"type";s:6:"string";s:11:"description";N;}}17519 9 kill_child auth/mnet/auth.php/kill_child auth mnet 0 TODO:Untested When the IdP requests that child sessions are terminated, \\n this function will be called on each of the child hosts. The machine that \\n calls the function (over xmlrpc) provides us with the mnethostid we need. a:3:{i:0;a:2:{s:4:"type";s:7:"boolean";s:11:"description";s:15:"True on success";}i:1;a:2:{s:4:"type";s:6:"string";s:11:"description";s:39:"username - Username for session to kill";}i:2;a:2:{s:4:"type";s:6:"string";s:11:"description";s:47:"useragent - SHA1 hash of user agent to look for";}}17520 10 available_courses enrol/mnet/enrol.php/available_courses enrol mnet 0 Does Foo a:1:{i:0;a:2:{s:4:"type";s:7:"boolean";s:11:"description";s:47:"Whether the user can login from the remote host";}}17521 11 user_enrolments enrol/mnet/enrol.php/user_enrolments enrol mnet 0 No description given. a:2:{i:0;a:2:{s:4:"type";s:4:"void";s:11:"description";s:0:"";}i:1;s:6:"userid";}17522 17608 \. 17523 17609 … … 17579 17665 2 book 2008081402 0 0 1 17580 17666 4 choice 2007101509 0 0 1 17581 5 data 2007101514 60 0 117582 17667 6 exercise 2007110500 60 0 0 17583 7 feedback 2008050120 0 0 117584 17668 9 glossary 2007101509 0 0 1 17585 17669 10 hotpot 2007101513 0 0 0 … … 17589 17673 14 lesson 2008112601 0 0 1 17590 17674 16 quiz 2007101511 0 0 1 17591 17 resource 2007101510 0 0 117592 17675 19 survey 2007101509 0 0 1 17593 17676 20 webquest 2007081222 0 0 1 17594 21 wiki 2009012201 0 0 117595 17677 22 workshop 2007101510 60 0 0 17596 15 questionnaire 2008060405 43200 1266595502 1 17597 3 chat 2009031100 300 1266597902 1 17598 18 scorm 2007110502 300 1266597902 1 17599 1 assignment 2007101511 60 1266598202 1 17600 8 forum 2007101513 60 1266598202 1 17678 15 questionnaire 2008060405 43200 1310133901 1 17679 3 chat 2009031100 300 1310133901 1 17680 1 assignment 2007101511 60 1310133901 1 17681 8 forum 2007101513 60 1310133901 1 17682 5 data 2007101515 60 0 1 17683 7 feedback 2008050125 0 0 1 17684 23 mindmap 20080622 0 0 1 17685 17 resource 2007101511 0 0 1 17686 18 scorm 2007110503 300 1310133901 1 17687 21 wiki 2010052800 0 0 1 17601 17688 \. 17602 17689 … … 18757 18844 718 1 1 report/security:view 1 1266595447 0 18758 18845 719 1 1 report/unittest:view 1 1266595447 0 18846 720 1 1 moodle/restore:createuser 1 1310133933 2 18759 18847 \. 18760 18848 … … 20372 20460 20373 20461 -- 20462 -- Name: mdl_mind_id_pk; Type: CONSTRAINT; Schema: public; Owner: moodle; Tablespace: 20463 -- 20464 20465 ALTER TABLE ONLY mdl_mindmap 20466 ADD CONSTRAINT mdl_mind_id_pk PRIMARY KEY (id); 20467 20468 20469 -- 20374 20470 -- Name: mdl_mnetappl_id_pk; Type: CONSTRAINT; Schema: public; Owner: moodle; Tablespace: 20375 20471 -- … … 23189 23285 23190 23286 -- 23287 -- Name: mdl_mind_cou_ix; Type: INDEX; Schema: public; Owner: moodle; Tablespace: 23288 -- 23289 23290 CREATE INDEX mdl_mind_cou_ix ON mdl_mindmap USING btree (course); 23291 23292 23293 -- 23294 -- Name: mdl_mind_use_ix; Type: INDEX; Schema: public; Owner: moodle; Tablespace: 23295 -- 23296 23297 CREATE INDEX mdl_mind_use_ix ON mdl_mindmap USING btree (userid); 23298 23299 23300 -- 23191 23301 -- Name: mdl_mnetenroassi_hoscou_ix; Type: INDEX; Schema: public; Owner: moodle; Tablespace: 23192 23302 -- … … 24376 24486 24377 24487 CREATE UNIQUE INDEX mdl_user_mneuse_uix ON mdl_user USING btree (mnethostid, username); 24488 24489 24490 -- 24491 -- Name: mdl_userinfodata_usefie_ix; Type: INDEX; Schema: public; Owner: moodle; Tablespace: 24492 -- 24493 24494 CREATE INDEX mdl_userinfodata_usefie_ix ON mdl_user_info_data USING btree (userid, fieldid); 24378 24495 24379 24496 -
main/linuxmuster-base/branches/testing/var/config-dynamic/22_nagios/prepatch
r787 r1206 16 16 /etc/init.d/nagios3 start 17 17 18 # nagios fernueberwachung, reconfigure in case of domainname change 19 if [ "$domainname" != "$domainname_old" ]; then 20 dpkg -l | grep linuxmuster-nagios-fernueberwachung | grep -q ^i && dpkg-reconfigure linuxmuster-nagios-fernueberwachung 21 fi 22 -
main/linuxmuster-base/branches/testing/var/config-dynamic/40_linbo/prepatch
- Property svn:keywords changed from Id to Id Revision
r787 r1206 1 # $Id$ 2 # 1 3 # check if imaging method is linbo 4 2 5 if [ "$imaging" = "linbo" ]; then 3 6 4 # patch rsyncd.secrets with admin password 5 if [ "$1" = "--first" ]; then 7 # create tftpd-hpa configs if necessary 8 tpldir="/usr/share/linuxmuster-linbo/templates" 9 tpl="$tpldir/tftpd-hpa.default" 10 conf="/etc/default/tftpd-hpa" 11 if ! grep -q "$LINBODIR" "$conf"; then 12 echo "Patching $conf." 13 backup_file "$conf" 14 sed -e "s|@@linbodir@@|$LINBODIR|" "$tpl" > "$conf" 15 fi 16 conf="/etc/tftp_remap.conf" 17 tpl="$tpldir/$(basename $conf)" 18 if [ ! -e "$conf" ]; then 19 echo "Providing $conf." 20 cp "$tpl" "$conf" 21 fi 6 22 7 [ -e /etc/rsyncd.secrets ] && backup_file /etc/rsyncd.secrets 8 if grep ^linbo: /etc/rsyncd.secrets &> /dev/null; then 9 sed -e "s/^linbo:.*/linbo:$adminpw/" -i /etc/rsyncd.secrets 10 else 11 echo "linbo:$adminpw" >> /etc/rsyncd.secrets 12 fi 23 # check for tftp in inetd.conf 24 conf=/etc/inetd.conf 25 if grep -q ^tftp "$conf"; then 26 echo "Deactivating tftp in $conf." 27 backup_file "$conf" 28 sed -e 's|^tftp|#tftp|' -i "$conf" 29 fi 13 30 14 # provide empty workstations data 15 rm -rf $SYSCONFDIR/workstations 31 # stuff to do on first time install 32 if [ "$1" = "--first" ]; then 16 33 17 else 34 # patch rsyncd.secrets with admin password 35 [ -e /etc/rsyncd.secrets ] && backup_file /etc/rsyncd.secrets 36 if grep ^linbo: /etc/rsyncd.secrets &> /dev/null; then 37 sed -e "s/^linbo:.*/linbo:$adminpw/" -i /etc/rsyncd.secrets 38 else 39 echo "linbo:$adminpw" >> /etc/rsyncd.secrets 40 fi 18 41 19 if [ "$imaging_old" = "rembo" ]; then 20 if [ -L "$SYSCONFDIR/workstations" ]; then 21 rm $SYSCONFDIR/workstations 22 else 23 backup_file $SYSCONFDIR/workstations 24 fi 25 cp $REMBOFILES/files/global/wimport_data $SYSCONFDIR/workstations 26 fi 42 # provide empty workstations data 43 rm -rf $SYSCONFDIR/workstations 27 44 28 fi 45 else # modify 29 46 30 touch $SYSCONFDIR/workstations 47 # restore workstations file from link if coming from rembo 48 if [ "$imaging_old" = "rembo" ]; then 49 if [ -L "$SYSCONFDIR/workstations" ]; then 50 rm $SYSCONFDIR/workstations 51 else 52 backup_file $SYSCONFDIR/workstations 53 fi 54 cp $REMBOFILES/files/global/wimport_data $SYSCONFDIR/workstations 55 fi 31 56 32 # patch path to wimport_data in dist.conf 33 backup_file /usr/share/linuxmuster/config/dist.conf 34 sed -e "s/^WIMPORTDATA=.*/WIMPORTDATA=\"\$SYSCONFDIR\/workstations\"/" -i /usr/share/linuxmuster/config/dist.conf 57 fi 35 58 36 # grep rsync password from rembo.conf or if that fails take simply muster as password 37 if ! grep ^linbo: /etc/rsyncd.secrets &> /dev/null; then 38 linbopw=`grep ^NetPassword /etc/rembo/rembo.conf | awk -F\" '{ print $2 }'` 39 [ -z "$linbopw" ] && linbopw=muster 40 echo "linbo:$linbopw" >> /etc/rsyncd.secrets 41 fi 42 chmod 600 /etc/rsyncd.secrets 59 touch $SYSCONFDIR/workstations 43 60 44 # check for initial configuration and copy it if necessary 45 teststr="# automatically created by linuxmuster-setup" 46 grep "$teststr" /etc/default/atftpd &> /dev/null || cp $STATICTPLDIR/etc/default/atftpd /etc/default 47 grep "$LINBODIR" /etc/default/atftpd &> /dev/null || cp $STATICTPLDIR/etc/default/atftpd /etc/default 48 grep "$teststr" /etc/rsyncd.conf &> /dev/null || cp $STATICTPLDIR/etc/rsyncd.conf /etc 61 # patch path to wimport_data in dist.conf 62 backup_file /usr/share/linuxmuster/config/dist.conf 63 sed -e "s/^WIMPORTDATA=.*/WIMPORTDATA=\"\$SYSCONFDIR\/workstations\"/" -i /usr/share/linuxmuster/config/dist.conf 49 64 50 # check for pxelinux config dir 51 # obsolete 52 #[ -d "$LINBODIR/pxelinux.cfg" ] || mkdir -p $LINBODIR/pxelinux.cfg 65 # if no linbo password then grep rsync password from rembo.conf or if that fails take simply muster as password 66 if ! grep ^linbo: /etc/rsyncd.secrets &> /dev/null; then 67 linbopw=`grep ^NetPassword /etc/rembo/rembo.conf | awk -F\" '{ print $2 }'` 68 [ -z "$linbopw" ] && linbopw=muster 69 echo "linbo:$linbopw" >> /etc/rsyncd.secrets 70 fi 71 chmod 600 /etc/rsyncd.secrets 53 72 54 # link pxelinux.0 to linbo dir 55 [ -e "$LINBODIR/pxelinux.0" ] || ln -sf /usr/lib/syslinux/pxelinux.0 $LINBODIR/pxelinux.0 73 # check for initial rsync configuration and copy it if necessary 74 teststr="# automatically created by linuxmuster-setup" 75 grep "$teststr" /etc/rsyncd.conf &> /dev/null || cp $STATICTPLDIR/etc/rsyncd.conf /etc 56 76 57 # copy default files to $LINBODIR, if they are not there already 58 # obsolete, these files are now in linbo package 59 #for i in `find $STATICTPLDIR/var/linbo/ -type f` `find /usr/share/linuxmuster/registry-patches/LINBO/ -name \*.reg`; do 60 # f=`basename $i` 61 # [ -e "$LINBODIR/$f" ] || cp $i $LINBODIR 62 #done 77 # link pxelinux.0 to linbo dir 78 [ -e "$LINBODIR/pxelinux.0" ] || ln -sf /usr/lib/syslinux/pxelinux.0 $LINBODIR/pxelinux.0 63 79 64 # open internal firewall for multicasting and rsync65 . /etc/default/linuxmuster-linbo66 if ! grep ^udp $ALLOWEDPORTS | grep -q $PORTBASE:; then67 backup_file $ALLOWEDPORTS68 PORTMAX=$PORTBASE69 let PORTMAX+=10070 PORTS=`grep ^udp $ALLOWEDPORTS | awk '{ print $2 }'`71 PORTS="$PORTS,$PORTBASE:$PORTMAX"72 sed -e "s/^udp.*/udp $PORTS/" -i $ALLOWEDPORTS73 fi74 if ! grep ^tcp $BASEPORTS | grep -qw rsync; then75 backup_file $BASEPORTS76 PORTS=`grep ^tcp $BASEPORTS | awk '{ print $2 }'`77 PORTS="$PORTS,rsync"78 sed -e "s/^tcp.*/tcp $PORTS/" -i $BASEPORTS79 fi80 # open internal firewall for multicasting and rsync 81 . /etc/default/linuxmuster-linbo 82 if ! grep ^udp $ALLOWEDPORTS | grep -q $PORTBASE:; then 83 backup_file $ALLOWEDPORTS 84 PORTMAX=$PORTBASE 85 let PORTMAX+=100 86 PORTS=`grep ^udp $ALLOWEDPORTS | awk '{ print $2 }'` 87 PORTS="$PORTS,$PORTBASE:$PORTMAX" 88 sed -e "s/^udp.*/udp $PORTS/" -i $ALLOWEDPORTS 89 fi 90 if ! grep ^tcp $BASEPORTS | grep -qw rsync; then 91 backup_file $BASEPORTS 92 PORTS=`grep ^tcp $BASEPORTS | awk '{ print $2 }'` 93 PORTS="$PORTS,rsync" 94 sed -e "s/^tcp.*/tcp $PORTS/" -i $BASEPORTS 95 fi 80 96 81 # patch start.confs with serverip82 for i in $LINBODEFAULTCONF `find $LINBODIR/ -type f -name 'start.conf*'`; do83 backup_file $i84 sed -e "s/^Server = \([0-9]\{1,3\}[.]\)\{3\}[0-9]\{1,3\}/Server = $serverip/" -i $i85 done97 # patch start.confs with serverip 98 for i in $LINBODEFAULTCONF `find $LINBODIR/ -type f -name 'start.conf*'`; do 99 backup_file $i 100 sed -e "s/^Server = \([0-9]\{1,3\}[.]\)\{3\}[0-9]\{1,3\}/Server = $serverip/" -i $i 101 done 86 102 87 # patch pxe confs with serverip (obsolete) 88 #for i in $PXEGRUBCFG $PXELINUXCFG `find $LINBODIR/ -type f -name 'pxegrub.lst.*'`; do 89 # backup_file $i 90 # sed -e "s/server=\([0-9]\{1,3\}[.]\)\{3\}[0-9]\{1,3\}/server=$serverip/g" -i $i 91 #done 103 # patch regs with workgroup 104 for i in `find $LINBODIR/ -type f -name '*.reg'`; do 105 backup_file $i 106 sed -e "s/^\"DefaultDomainName\"=.*/\"DefaultDomainName\"=\"$workgroup\"/ 107 s/^\"Workgroup\"=.*/\"Workgroup\"=\"$workgroup\"/" -i $i 108 done 92 109 93 # patch regs with workgroup 94 for i in `find $LINBODIR/ -type f -name '*.reg'`; do 95 backup_file $i 96 sed -e "s/^\"DefaultDomainName\"=.*/\"DefaultDomainName\"=\"$workgroup\"/ 97 s/^\"Workgroup\"=.*/\"Workgroup\"=\"$workgroup\"/" -i $i 98 done 110 # patch start variables of tftpd-hpa and rsync 111 sed -e "s/^RUN_DAEMON=.*/RUN_DAEMON=yes/" -i /etc/default/tftpd-hpa 112 sed -e "s/^RSYNC_ENABLE=.*/RSYNC_ENABLE=true/" -i /etc/default/rsync 99 113 100 # patch start variables of atftpd and rsync 101 sed -e "s/^USE_INETD=.*/USE_INETD=false/" -i /etc/default/atftpd 102 sed -e "s/^RSYNC_ENABLE=.*/RSYNC_ENABLE=true/" -i /etc/default/rsync 114 # check for images and start multicast 115 update-rc.d linbo-multicast defaults 116 res=`find $LINBODIR -name '*.cloop'` 117 if [ -n "$res" ]; then 118 sed -e "s/^START_MULTICAST=.*/START_MULTICAST=yes/" -i /etc/default/linuxmuster-linbo 119 /etc/init.d/linbo-multicast start 120 else 121 sed -e "s/^START_MULTICAST=.*/START_MULTICAST=no/" -i /etc/default/linuxmuster-linbo 122 fi 103 123 104 # check for images and start multicast 105 update-rc.d linbo-multicast defaults 106 res=`find $LINBODIR -name '*.cloop'` 107 if [ -n "$res" ]; then 108 sed -e "s/^START_MULTICAST=.*/START_MULTICAST=yes/" -i /etc/default/linuxmuster-linbo 109 /etc/init.d/linbo-multicast start 110 else 111 sed -e "s/^START_MULTICAST=.*/START_MULTICAST=no/" -i /etc/default/linuxmuster-linbo 112 fi 124 # linbo administrative user 125 if ! check_id linbo; then 126 linbopasswd=`grep ^linbo /etc/rsyncd.secrets | awk -F\: '{ print $2 }'` 127 if [ -n "$linbopasswd" ]; then 128 echo "Creating linbo user ..." 129 sophomorix-useradd --administrator linbo --unix-group $ADMINGROUP --shell /bin/false --gecos "LINBO Administrator" &> /dev/null || true 130 sophomorix-passwd --user linbo --pass $linbopasswd &> /dev/null || true 131 smbldap-usermod -H '[UX ]' linbo || true 132 fi 133 fi 113 134 114 # linbo administrative user 115 if ! check_id linbo; then 116 linbopasswd=`grep ^linbo /etc/rsyncd.secrets | awk -F\: '{ print $2 }'` 117 if [ -n "$linbopasswd" ]; then 118 echo "Creating linbo user ..." 119 sophomorix-useradd --administrator linbo --unix-group $ADMINGROUP --shell /bin/false --gecos "LINBO Administrator" &> /dev/null || true 120 sophomorix-passwd --user linbo --pass $linbopasswd &> /dev/null || true 121 smbldap-usermod -H '[UX ]' linbo || true 122 fi 123 fi 135 # check for linbo mail wrapper in /etc/aliases 136 if ! grep -q ^linbo: /etc/aliases; then 137 backup_file /etc/aliases 138 sed -e "/^root:/a\ 139 linbo: \"\|\/usr\/share\/linuxmuster-linbo\/mail2log.sh\"" -i /etc/aliases 140 newaliases 141 fi 124 142 125 # check for linbo mail wrapper in /etc/aliases 126 if ! grep -q ^linbo: /etc/aliases; then 127 backup_file /etc/aliases 128 sed -e "/^root:/a\ 129 linbo: \"\|\/usr\/share\/linuxmuster-linbo\/mail2log.sh\"" -i /etc/aliases 130 newaliases 131 fi 143 # change owner of logdir to nobody 144 [ -d "$LOGDIR/linbo" ] || mkdir -p $LOGDIR/linbo 145 chown nobody $LOGDIR/linbo 132 146 133 # change owner of logdir to nobody 134 [ -d "$LOGDIR/linbo" ] || mkdir -p $LOGDIR/linbo 135 chown nobody $LOGDIR/linbo 136 137 # start necessary services 138 /etc/init.d/atftpd start 139 /etc/init.d/rsync start 147 # start necessary services 148 /etc/init.d/tftpd-hpa start 149 /etc/init.d/rsync start 140 150 # don't start these on first install 141 151 if [ "$1" != "--first" ]; then … … 149 159 fi 150 160 151 else 161 # don't start these on first install 162 if [ "$1" != "--first" ]; then 163 /etc/init.d/bittorrent start 164 /etc/init.d/linbo-bittorrent start 165 /etc/init.d/linbo-multicast start 166 else 167 [ -e /etc/default/bittorrent ] && sed -e 's|^START_BTTRACK=.*|START_BTTRACK=0|' -i /etc/default/bittorrent 168 [ -e /etc/default/linbo-bittorrent ] && sed -e 's|^START_BITTORRENT=.*|START_BITTORRENT=0|' -i /etc/default/linbo-bittorrent 169 [ -e /etc/default/linuxmuster-linbo ] && sed -e 's|^START_MULTICAST=.*|START_MULTICAST=no|' -i /etc/default/linuxmuster-linbo 170 fi 152 171 153 # patch start variables of atftpd and rsync 154 [ -e /etc/default/atftpd ] && backup_file /etc/default/atftpd ; sed -e "s/^USE_INETD=.*/USE_INETD=true/" -i /etc/default/atftpd 155 [ -e /etc/default/rsync ] && backup_file /etc/default/rsync ; sed -e "s/^RSYNC_ENABLE=.*/RSYNC_ENABLE=false/" -i /etc/default/rsync 156 [ -e /etc/default/linuxmuster-linbo ] && backup_file /etc/default/linuxmuster-linbo ; sed -e "s/^START_MULTICAST=.*/START_MULTICAST=no/" -i /etc/default/linuxmuster-linbo 172 else # switch to rembo, deactivate linbo 157 173 158 # remove tftp from inetd.conf 159 if grep -q tftp /etc/inetd.conf; then 160 backup_file /etc/inetd.conf 161 grep -v tftp /etc/inetd.conf > /var/tmp/inetd.conf 162 mv /var/tmp/inetd.conf /etc 163 fi 174 # patch start variables of tftpd-hpa and rsync 175 [ -e /etc/default/tftpd-hpa ] && backup_file /etc/default/tftpd-hpa ; sed -e "s/^RUN_DAEMON=.*/RUN_DAEMON=no/" -i /etc/default/tftpd-hpa 176 [ -e /etc/default/rsync ] && backup_file /etc/default/rsync ; sed -e "s/^RSYNC_ENABLE=.*/RSYNC_ENABLE=false/" -i /etc/default/rsync 177 [ -e /etc/default/linuxmuster-linbo ] && backup_file /etc/default/linuxmuster-linbo ; sed -e "s/^START_MULTICAST=.*/START_MULTICAST=no/" -i /etc/default/linuxmuster-linbo 164 178 165 # remove linbo mail wrapper from /etc/aliases166 if grep -q ^linbo: /etc/aliases; then167 backup_file /etc/aliases168 grep -v ^linbo: /etc/aliases > /var/tmp/aliases169 mv /var/tmp/aliases /etc/aliases170 newaliases171 fi179 # remove linbo mail wrapper from /etc/aliases 180 if grep -q ^linbo: /etc/aliases; then 181 backup_file /etc/aliases 182 grep -v ^linbo: /etc/aliases > /var/tmp/aliases 183 mv /var/tmp/aliases /etc/aliases 184 newaliases 185 fi 172 186 173 187 fi -
main/linuxmuster-base/branches/testing/var/config-dynamic/99_start-services/postpatch
r787 r1206 86 86 let o+=1 87 87 done 88 rm -f $LINBODIR/*.torrent 88 89 import_workstations 89 90 wsimport=yes -
main/linuxmuster-base/branches/testing/var/config-static/etc/samba/smb.conf.shares
- Property svn:keywords changed from Id to Id Revision
r787 r1206 1 # custom share definitions 1 # custom share definitions 2 # $Id$ 2 3 3 # A sample share for sharing your CD-ROM with others.4 ;[ cdrom]5 ; comment = Samba server's CD-ROM6 ; writable = no7 ; locking = no8 ; path = /cdrom9 ; public = yes4 # program share with write permissions 5 ;[pgmw] 6 ; comment = Windows Programs with write perms 7 ; path = /home/samba/pgmw 8 ; admin users = @domadmins 9 ; writeable = Yes 10 ; guest ok = No 10 11 11 # The next two parameters show how to auto-mount a CD-ROM when the 12 # cdrom share is accesed. For this to work /etc/fstab must contain 13 # an entry like this: 14 # 15 # /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0 16 # 17 # The CD-ROM gets unmounted automatically after the connection to the 18 # 19 # If you don't want to use auto-mounting/unmounting make sure the CD 20 # is mounted on /cdrom 21 # 22 ; preexec = /bin/mount /cdrom 23 ; postexec = /bin/umount /cdrom 12 # add your own shares here 24 13
Note: See TracChangeset
for help on using the changeset viewer.
