| Line 6... |
Line 6... |
| 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
|
- |
|
| 12 |
# releasem ALL=(pkgadm) NOPASSWD: /home/releasem/sbin/jatsTool
|
11 |
# releasem ALL=(pkgadm) NOPASSWD: /home/releasem/sbin/jatsTool
|
| 13 |
#
|
12 |
#
|
| 14 |
# Operation:
|
13 |
# Operation:
|
| 15 |
# A master deamon withint the buildtool will invoke the command
|
14 |
# A master deamon withint the buildtool will invoke the command
|
| 16 |
# sudo -n -u buildadm /home/releasem/sbin/jatsTool assemble_dpkg ...
|
15 |
# sudo -n -u pkgadm /home/releasem/sbin/jatsTool assemble_dpkg ...
|
| 17 |
# after conecting to the dpkg_archive server as the 'releasem' user
|
16 |
# after conecting to the dpkg_archive server as the 'releasem' user
|
| 18 |
#
|
17 |
#
|
| 19 |
# The script will:
|
18 |
# The script will:
|
| 20 |
# * Ensure that the user is running as 'buildadm' or 'pkgadm'
|
19 |
# * Ensure that the user is running as 'pkgadm'
|
| 21 |
# * Setup the execution environment to ensure that JATS can run
|
20 |
# * Setup the execution environment to ensure that JATS can run
|
| 22 |
# * Run jats an invove he maned tool with provided arguments
|
21 |
# * Run jats an invove he maned tool with provided arguments
|
| 23 |
#
|
22 |
#
|
| 24 |
# Note: pkgadm is the prefered user
|
- |
|
| 25 |
# buildadm was the required user - until a rouge test deleted too much stuff
|
- |
|
| 26 |
#
|
- |
|
| 27 |
#
|
- |
|
| 28 |
if [ $USER != "buildadm" -a $USER != "pkgadm" ] ; then
|
23 |
if [ $USER != "pkgadm" ] ; then
|
| 29 |
echo "This script MUST be run as buildadm or pkgadm, not as $USER"
|
24 |
echo "This script MUST be run as pkgadm, not as $USER"
|
| 30 |
exit 1
|
25 |
exit 1
|
| 31 |
fi
|
26 |
fi
|
| 32 |
source /etc/profile
|
27 |
source /etc/profile
|
| 33 |
jats etool "$@"
|
28 |
jats etool "$@"
|
| 34 |
|
29 |
|