Subversion Repositories DevTools

Rev

Rev 6914 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6914 Rev 7358
Line 3... Line 3...
3
#	This script is a part of the 'buildtool' - the JATS automated build system
3
#	This script is a part of the 'buildtool' - the JATS automated build system
4
#
4
#
5
#	Installation locatation
5
#	Installation locatation
6
#	This script must be installed into:
6
#	This script must be installed into:
7
#		/home/releasem/sbin/jatsTool on the dpkg_archive server
7
#		/home/releasem/sbin/jatsTool on the dpkg_archive server
8
#	
8
#
9
#	Sudo Configuration
9
#	Sudo Configuration
10
#	Correct operation relies on the use of Sudo. sudo must be configured with:
10
#	Correct operation relies on the use of Sudo. sudo must be configured with:
11
#		releasem        ALL=(buildadm) NOPASSWD: /home/releasem/sbin/jatsTool
11
#		releasem        ALL=(buildadm) NOPASSWD: /home/releasem/sbin/jatsTool
-
 
12
#		releasem        ALL=(pkgadm)   NOPASSWD: /home/releasem/sbin/jatsTool
12
#
13
#
13
#	Operation:
14
#	Operation:
14
#	A master deamon withint the buildtool will invoke the command
15
#	A master deamon withint the buildtool will invoke the command
15
#		sudo -n -u buildadm /home/releasem/sbin/jatsTool assemble_dpkg ...
16
#		sudo -n -u buildadm /home/releasem/sbin/jatsTool assemble_dpkg ...
16
#	after conecting to the dpkg_archive server as the 'releasem' user
17
#	after conecting to the dpkg_archive server as the 'releasem' user
17
#
18
#
18
#	The script will:
19
#	The script will:
19
#		* Ensure that the user is running as 'buildadm'
20
#		* Ensure that the user is running as 'buildadm' or 'pkgadm'
20
#		* Setup the execution environment to ensure that JATS can run
21
#		* Setup the execution environment to ensure that JATS can run
21
#		* Run jats an invove he maned tool with provided arguments
22
#		* Run jats an invove he maned tool with provided arguments
-
 
23
#
-
 
24
#   Note: pkgadm is the prefered user
-
 
25
#         buildadm was the required user - until a rouge test deleted too much stuff
22
#	
26
#	
23
#
27
#
24
if [ $USER != "buildadm" ] ; then
28
if [ $USER != "buildadm" -a $USER != "pkgadm" ] ; then
25
     echo "This script MUST be run as buildadm, not as $USER"
29
     echo "This script MUST be run as buildadm or pkgadm, not as $USER"
26
     exit 1
30
     exit 1
27
fi
31
fi
28
source /etc/profile
32
source /etc/profile
29
jats etool "$@"
33
jats etool "$@"
30
 
34