Skip to content
Snippets Groups Projects
Commit 64102dd7 authored by Mike Lake's avatar Mike Lake
Browse files

Changes to make install script operational.

parent 119d8273
No related merge requests found
#!/bin/bash
# Installs the check_utilisation.py Python script and its dependencies.
# TODO This would be placed in /usr/local/bin so it can be run by users
# but it is still being worked on so its not installed for now.
#
# Usage: bash ./check_utilisation_install.sh
# 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.
# 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)
......@@ -21,11 +24,11 @@ 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
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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment