From 7235899a732717852085731fd2e0254d5e7ae37c Mon Sep 17 00:00:00 2001 From: Mike Lake <Mike.Lake@uts.edu.au> Date: Tue, 26 Oct 2021 15:36:07 +1100 Subject: [PATCH] Removed UTS specific install script. --- install_check_utilisation.sh | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 install_check_utilisation.sh diff --git a/install_check_utilisation.sh b/install_check_utilisation.sh deleted file mode 100644 index d6dd4f7..0000000 --- a/install_check_utilisation.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash - -# Installs the check_utilisation.py Python script and its dependencies. -# -# Usage: bash ./install_check_utilisation.sh - -# Set here the location of where the script will be installed to. -# The "pbs" directory will be installed under here as well. -# Do not use a trailing slash here. -dest="/opt/eresearch" - -# Check the public users database is up-to-date with the private one -# by doing a quick check of the number of entries. If you are not using -# this db then comment out this section. -num1=$(echo 'select count(id) from users;' | sqlite3 users_ldap.db) -num2=$(echo 'select count(id) from users;' | sqlite3 users_ldap_public.db) - -if [ $num1 -ne $num2 ]; then - echo "Number of users in each database does not match ($num1 & $num2) so updating public database..." - ./users_ldap_public_create.sh -else - echo "Number of users in each database is the same." -fi - -# Now do the install. - -mkdir -p ${dest}/pbs -cp pbs/pbs.py ${dest}/pbs -cp pbs/_pbs.so ${dest}/pbs -cp pbs/pbsutils.py ${dest}/pbs -cp check_utilisation.py ${dest} -cp users_ldap_public.db ${dest} -chmod ugo+x ${dest}/check_utilisation.py - -- GitLab