Browse Source

n/omero: Run with login shell.

slackware-14.2
Damien Goutte-Gattat 8 years ago
parent
commit
e6140607bc
2 changed files with 7 additions and 7 deletions
  1. +1
    -1
      n/omero/omero.SlackBuild
  2. +6
    -6
      n/omero/rc.omero

+ 1
- 1
n/omero/omero.SlackBuild View File

@ -35,7 +35,7 @@ WGET=${WGET:-http://cvs.openmicroscopy.org.uk/snapshots/omero/4.4.6/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-omero}
BUILD=${BUILD:-1GGD}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}


+ 6
- 6
n/omero/rc.omero View File

@ -25,7 +25,7 @@ init)
PGOPTS="-h $DB_HOST -p $DB_PORT -U $DB_ROOT"
echo Applying configuration...
sudo -H -u omero omero config load $CONFIG_FILE
sudo -H -u omero -i omero config load $CONFIG_FILE
if [ ! -d $DATADIR ]; then
echo Creating data repository...
@ -44,7 +44,7 @@ init)
createlang $PGOPTS plpgsql $DB_NAME
(
cd /opt/omero
sudo -H -u omero omero db script
sudo -H -u omero -i omero db script
psql -h $DB_HOST -p $DB_PORT -U $DB_USER $DB_NAME < OMERO4.4__0.sql
rm -rf OMERO4.4__0.sql
)
@ -52,18 +52,18 @@ init)
;;
start)
sudo -H -u omero omero admin start
sudo -H -u omero -i omero admin start
if [ "x$OMERO_WEB_ENABLED" = xyes ]; then
sudo -H -u omero omero web start
sudo -H -u omero -i omero web start
fi
;;
stop)
if [ -f $ICEGRID_PIDFILE ] && kill -0 $(< $ICEGRID_PIDFILE) 2>/dev/null ; then
if [ "x$OMERO_WEB_ENABLED" = xyes ]; then
sudo -H -u omero omero web stop
sudo -H -u omero -i omero web stop
fi
sudo -H -u omero omero admin stop
sudo -H -u omero -i omero admin stop
fi
;;


Loading…
Cancel
Save