Commit e4ba96fcada29346f77df8a05a03df7d9a68854a
1 parent
28e92877
Remove no-longer-useful/usable scripts
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5176 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
8 changed files
with
0 additions
and
204 deletions
bin/backup-crontab deleted
bin/captureStats.sh deleted
bin/deploy-dms.sh deleted
| 1 | -#!/usr/local/bin/bash | |
| 2 | -# | |
| 3 | -# deploy-dms.sh - cvs update the current dev build and update the version/builddate | |
| 4 | - | |
| 5 | -wwwroot=/usr/local/www/owl/owl | |
| 6 | -version=/usr/local/www/owl/owl/config/owl.php | |
| 7 | -tmp=/tmp/owl.php | |
| 8 | - | |
| 9 | -cd $wwwroot | |
| 10 | -cvs update | |
| 11 | -# sed the version with today's date | |
| 12 | -cat $version | sed 's#@build-date@#`date +%Y%m%d`g' > $tmp | |
| 13 | -mv $tmp $version | |
| 14 | -rm $tmp |
bin/dms-backup.sh deleted
| 1 | -#!/usr/local/bin/bash | |
| 2 | -# | |
| 3 | -# backup.sh - archives and copies project cvs root to windoze file server | |
| 4 | -# todo: return code checking, mail status | |
| 5 | - | |
| 6 | -# define paths | |
| 7 | -BACKUP_USER=jambackup | |
| 8 | -BACKUP_SERVER="//$BACKUP_USER@Jam001/JAM Backups" | |
| 9 | -LOCAL_MOUNT=/tmp/backup | |
| 10 | -BACKUP_FROM=/usr/local/cvsroot | |
| 11 | -BACKUP_TO=/tmp/backup/Backups\ to\ tape/ | |
| 12 | - | |
| 13 | -# check that we're not mounted already | |
| 14 | -/sbin/umount $LOCAL_MOUNT | |
| 15 | - | |
| 16 | -# clear the backup mount point | |
| 17 | -/bin/rm -rf $LOCAL_MOUNT | |
| 18 | -/bin/mkdir -p $LOCAL_MOUNT | |
| 19 | - | |
| 20 | -# mount the server | |
| 21 | -/sbin/mount_smbfs -N "$BACKUP_SERVER" $LOCAL_MOUNT | |
| 22 | - | |
| 23 | -# tar up the cvs repository | |
| 24 | -archive=mrc_dms_`date +%Y-%m-%d`.tgz | |
| 25 | -/usr/bin/tar czvf /tmp/$archive $BACKUP_FROM | |
| 26 | - | |
| 27 | -# copy to backup server | |
| 28 | -/bin/cp /tmp/$archive "$BACKUP_TO" | |
| 29 | - | |
| 30 | -# check that its there | |
| 31 | -/bin/ls -al "$BACKUP_TO" | |
| 32 | - | |
| 33 | -# clean up | |
| 34 | -/bin/rm /tmp/$archive | |
| 35 | - | |
| 36 | -# disconnect twice (for safety and because the first try consistently doesn't work) | |
| 37 | -/sbin/umount $LOCAL_MOUNT | |
| 38 | -/sbin/umount $LOCAL_MOUNT | |
| 39 | - | |
| 40 | -exit |
bin/fix_perms.sh deleted
| 1 | -#!/bin/sh | |
| 2 | - | |
| 3 | -# displays the script usage message | |
| 4 | -# | |
| 5 | -usage() { | |
| 6 | - echo "usage: `basename $0` user:group" | |
| 7 | - echo " eg. `basename $0` www:wheel" | |
| 8 | - exit 1 | |
| 9 | -} | |
| 10 | - | |
| 11 | -# check the command line options | |
| 12 | -if [ $# -lt 1 ]; then | |
| 13 | - usage | |
| 14 | -fi | |
| 15 | - | |
| 16 | -wwwroot=../`dirname $0` | |
| 17 | - | |
| 18 | -chown -R $1 $wwwroot | |
| 19 | -chmod -R 750 $wwwroot/Documents/* |
bin/rebuildSearchPermissions.php deleted
| 1 | -<?php | |
| 2 | - | |
| 3 | -/** | |
| 4 | - * $Id$ | |
| 5 | - * | |
| 6 | - * Copyright (c) 2006 Jam Warehouse http://www.jamwarehouse.com | |
| 7 | - * | |
| 8 | - * This program is free software; you can redistribute it and/or modify | |
| 9 | - * it under the terms of the GNU General Public License as published by | |
| 10 | - * the Free Software Foundation; using version 2 of the License. | |
| 11 | - * | |
| 12 | - * This program is distributed in the hope that it will be useful, | |
| 13 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 | - * GNU General Public License for more details. | |
| 16 | - * | |
| 17 | - * You should have received a copy of the GNU General Public License | |
| 18 | - * along with this program; if not, write to the Free Software | |
| 19 | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 20 | - * | |
| 21 | - * ------------------------------------------------------------------------- | |
| 22 | - * | |
| 23 | - * You can contact the copyright owner regarding licensing via the contact | |
| 24 | - * details that can be found on the KnowledgeTree web site: | |
| 25 | - * | |
| 26 | - * http://www.ktdms.com/ | |
| 27 | - */ | |
| 28 | - | |
| 29 | -require_once('../config/dmsDefaults.php'); | |
| 30 | -require_once(KT_LIB_DIR . '/documentmanagement/Document.inc'); | |
| 31 | -require_once(KT_LIB_DIR . '/security/Permission.inc'); | |
| 32 | - | |
| 33 | -$aDocuments = Document::getList(); | |
| 34 | -foreach ($aDocuments as $oDocument) { | |
| 35 | - Permission::updateSearchPermissionsForDocument($oDocument->getID()); | |
| 36 | -} | |
| 37 | - | |
| 38 | -?> |
bin/rebuildSearchPermissionsbyUser.php deleted
| 1 | -<?php | |
| 2 | - | |
| 3 | -/** | |
| 4 | - * $Id$ | |
| 5 | - * | |
| 6 | - * Copyright (c) 2006 Jam Warehouse http://www.jamwarehouse.com | |
| 7 | - * | |
| 8 | - * This program is free software; you can redistribute it and/or modify | |
| 9 | - * it under the terms of the GNU General Public License as published by | |
| 10 | - * the Free Software Foundation; using version 2 of the License. | |
| 11 | - * | |
| 12 | - * This program is distributed in the hope that it will be useful, | |
| 13 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 | - * GNU General Public License for more details. | |
| 16 | - * | |
| 17 | - * You should have received a copy of the GNU General Public License | |
| 18 | - * along with this program; if not, write to the Free Software | |
| 19 | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 20 | - * | |
| 21 | - * ------------------------------------------------------------------------- | |
| 22 | - * | |
| 23 | - * You can contact the copyright owner regarding licensing via the contact | |
| 24 | - * details that can be found on the KnowledgeTree web site: | |
| 25 | - * | |
| 26 | - * http://www.ktdms.com/ | |
| 27 | - */ | |
| 28 | - | |
| 29 | -require_once('../config/dmsDefaults.php'); | |
| 30 | -require_once(KT_LIB_DIR . '/users/User.inc'); | |
| 31 | -require_once(KT_LIB_DIR . '/security/Permission.inc'); | |
| 32 | - | |
| 33 | -$aUsers = User::getList(); | |
| 34 | -foreach ($aUsers as $oUser) { | |
| 35 | - Permission::updateSearchPermissionsForUser($oUser->getID()); | |
| 36 | -} | |
| 37 | - | |
| 38 | -?> |
bin/setPermissionFolder.php deleted
| 1 | -<?php | |
| 2 | - | |
| 3 | -/** | |
| 4 | - * $Id$ | |
| 5 | - * | |
| 6 | - * Copyright (c) 2006 Jam Warehouse http://www.jamwarehouse.com | |
| 7 | - * | |
| 8 | - * This program is free software; you can redistribute it and/or modify | |
| 9 | - * it under the terms of the GNU General Public License as published by | |
| 10 | - * the Free Software Foundation; using version 2 of the License. | |
| 11 | - * | |
| 12 | - * This program is distributed in the hope that it will be useful, | |
| 13 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 | - * GNU General Public License for more details. | |
| 16 | - * | |
| 17 | - * You should have received a copy of the GNU General Public License | |
| 18 | - * along with this program; if not, write to the Free Software | |
| 19 | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 20 | - * | |
| 21 | - * ------------------------------------------------------------------------- | |
| 22 | - * | |
| 23 | - * You can contact the copyright owner regarding licensing via the contact | |
| 24 | - * details that can be found on the KnowledgeTree web site: | |
| 25 | - * | |
| 26 | - * http://www.ktdms.com/ | |
| 27 | - */ | |
| 28 | - | |
| 29 | -require_once('../config/dmsDefaults.php'); | |
| 30 | -require_once(KT_LIB_DIR . '/foldermanagement/Folder.inc'); | |
| 31 | - | |
| 32 | -$sQuery = "SELECT id FROM $default->folders_table WHERE permission_folder_id IS NULL"; | |
| 33 | - | |
| 34 | -$aIDs = DBUtil::getResultArrayKey($sQuery, 'id'); | |
| 35 | - | |
| 36 | -foreach ($aIDs as $iID) { | |
| 37 | - $oFolder =& Folder::get($iID); | |
| 38 | - $oFolder->calculatePermissionFolder(); | |
| 39 | - $oFolder->update(); | |
| 40 | -} | |
| 41 | - | |
| 42 | -?> |