diff --git a/bin/backup-crontab b/bin/backup-crontab deleted file mode 100644 index 5206d96..0000000 --- a/bin/backup-crontab +++ /dev/null @@ -1,2 +0,0 @@ -# perform backups at five minutes past midnight daily -5 0 * * * $HOME/bin/dms-backup.sh > $HOME/bklog-`date +%Y-%m-%d` 2>&1 diff --git a/bin/captureStats.sh b/bin/captureStats.sh deleted file mode 100755 index 95107e9..0000000 --- a/bin/captureStats.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -out=stats-`date +%Y-%m-%d`.out -# clear the output file -> $out - -echo "break to stop stats collection" -while true; do - date +%Y-%m-%d:%H:%M:%S | tee -a $out - vmstat -c 5 | tee -a $out -done diff --git a/bin/deploy-dms.sh b/bin/deploy-dms.sh deleted file mode 100644 index dfca882..0000000 --- a/bin/deploy-dms.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/local/bin/bash -# -# deploy-dms.sh - cvs update the current dev build and update the version/builddate - -wwwroot=/usr/local/www/owl/owl -version=/usr/local/www/owl/owl/config/owl.php -tmp=/tmp/owl.php - -cd $wwwroot -cvs update -# sed the version with today's date -cat $version | sed 's#@build-date@#`date +%Y%m%d`g' > $tmp -mv $tmp $version -rm $tmp diff --git a/bin/dms-backup.sh b/bin/dms-backup.sh deleted file mode 100755 index aadb0c7..0000000 --- a/bin/dms-backup.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/local/bin/bash -# -# backup.sh - archives and copies project cvs root to windoze file server -# todo: return code checking, mail status - -# define paths -BACKUP_USER=jambackup -BACKUP_SERVER="//$BACKUP_USER@Jam001/JAM Backups" -LOCAL_MOUNT=/tmp/backup -BACKUP_FROM=/usr/local/cvsroot -BACKUP_TO=/tmp/backup/Backups\ to\ tape/ - -# check that we're not mounted already -/sbin/umount $LOCAL_MOUNT - -# clear the backup mount point -/bin/rm -rf $LOCAL_MOUNT -/bin/mkdir -p $LOCAL_MOUNT - -# mount the server -/sbin/mount_smbfs -N "$BACKUP_SERVER" $LOCAL_MOUNT - -# tar up the cvs repository -archive=mrc_dms_`date +%Y-%m-%d`.tgz -/usr/bin/tar czvf /tmp/$archive $BACKUP_FROM - -# copy to backup server -/bin/cp /tmp/$archive "$BACKUP_TO" - -# check that its there -/bin/ls -al "$BACKUP_TO" - -# clean up -/bin/rm /tmp/$archive - -# disconnect twice (for safety and because the first try consistently doesn't work) -/sbin/umount $LOCAL_MOUNT -/sbin/umount $LOCAL_MOUNT - -exit diff --git a/bin/fix_perms.sh b/bin/fix_perms.sh deleted file mode 100755 index e5082ef..0000000 --- a/bin/fix_perms.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -# displays the script usage message -# -usage() { - echo "usage: `basename $0` user:group" - echo " eg. `basename $0` www:wheel" - exit 1 -} - -# check the command line options -if [ $# -lt 1 ]; then - usage -fi - -wwwroot=../`dirname $0` - -chown -R $1 $wwwroot -chmod -R 750 $wwwroot/Documents/* diff --git a/bin/rebuildSearchPermissions.php b/bin/rebuildSearchPermissions.php deleted file mode 100644 index 8882bff..0000000 --- a/bin/rebuildSearchPermissions.php +++ /dev/null @@ -1,38 +0,0 @@ -getID()); -} - -?> diff --git a/bin/rebuildSearchPermissionsbyUser.php b/bin/rebuildSearchPermissionsbyUser.php deleted file mode 100644 index 4b5fcd1..0000000 --- a/bin/rebuildSearchPermissionsbyUser.php +++ /dev/null @@ -1,38 +0,0 @@ -getID()); -} - -?> diff --git a/bin/setPermissionFolder.php b/bin/setPermissionFolder.php deleted file mode 100644 index 6a94bce..0000000 --- a/bin/setPermissionFolder.php +++ /dev/null @@ -1,42 +0,0 @@ -folders_table WHERE permission_folder_id IS NULL"; - -$aIDs = DBUtil::getResultArrayKey($sQuery, 'id'); - -foreach ($aIDs as $iID) { - $oFolder =& Folder::get($iID); - $oFolder->calculatePermissionFolder(); - $oFolder->update(); -} - -?>