#! /bin/sh #----------------------------------------------------------------------------- # /var/install/bin/packagedevelopment-start-admin-gui.sh - Start the text # gui for the package development scripts as the user given on the package # configuration. # # Creation : 2008-07-06 starwarsfan # Last update: $Id$ # # Copyright (c) 2007-2008 the eisfair team, team(at)eisfair(dot)org> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #----------------------------------------------------------------------------- #exec 2> `pwd`/packagedevelopment-start-admin-gui-trace$$.log #set -x #----------------------------------------------------------------------------- # config Dateien #----------------------------------------------------------------------------- # include eislib . /var/install/include/eislib # include config . /etc/config.d/packagedevelopment rtc=0 if [ -z "${PKGDEV_WORKING_COPY_USER}" ] then # -------------------------------------------------------------- # Working copy user not given, run the script as the actual user ${PKGDEV_WORKING_COPY_PATH}/${PKGDEV_FOLDER_NAME_TRUNK}/_ADMIN/admin-packages-new.sh rtc=$? else sudo -H -u ${PKGDEV_WORKING_COPY_USER} ${PKGDEV_WORKING_COPY_PATH}/${PKGDEV_FOLDER_NAME_TRUNK}/_ADMIN/admin-packages-new.sh rtc=$? fi exit ${rtc} #----------------------------------------------------------------------------- # end #-----------------------------------------------------------------------------