Browse Source

n/omero-server: Updated.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
120defebad
  1. 13
      n/omero-server/doinst.sh
  2. 3
      n/omero-server/omero-server.SlackBuild
  3. 3
      n/omero-server/omero.conf
  4. 1
      n/omero-server/rc.omero

13
n/omero-server/doinst.sh

@ -1,4 +1,15 @@
#!/bin/sh
config()
{
NEW="$1"
OLD="`dirname $NEW`/`basename $NEW .new`"
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then
rm $NEW
fi
}
config etc/omero.conf.new
if ! grep ^omero /etc/group > /dev/null ; then
/usr/sbin/groupadd -g 270 omero
@ -11,3 +22,5 @@ if ! grep ^omero /etc/passwd > /dev/null ; then
fi
chown -R omero /opt/omero
chgrp omero etc/omero.conf
chmod 640 etc/omero.conf

3
n/omero-server/omero-server.SlackBuild

@ -75,6 +75,9 @@ rm omero/bin/*.bat omero/etc/env.bat
install -D -m 755 $CWD/omero.sh $PKG/usr/bin/omero
install -D -m 644 $CWD/rc.omero $PKG/etc/rc.d/rc.omero
# Install configuration file
install -D -m 644 $CWD/omero.conf $PKG/etc/omero.conf.new
# Install documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 $CWD/README $PKG/usr/doc/$NAMEPKG-$VERSION

3
n/omero-server/omero.conf

@ -0,0 +1,3 @@
# Glacier2Template SSL allowed cipher suites
# Do not remove this option as it is necessary with OpenSSL 1.1
omero.glacier2.IceSSL.Ciphers=ADH:!LOW:!MD5:!EXP:!3DES:@STRENGTH:@SECLEVEL=0

1
n/omero-server/rc.omero

@ -43,7 +43,6 @@ init)
if ! psql $PGOPTS -l | grep -q $DB_NAME ; then
echo Creating database...
createdb $PGOPTS -E UTF8 -l en_US.UTF-8 -T template0 -O $DB_USER $DB_NAME
createlang $PGOPTS plpgsql $DB_NAME
sudo -H -u omero -i omero db script
psql -h $DB_HOST -p $DB_PORT -U $DB_USER $DB_NAME < /var/lib/omero/OMERO5.4__0.sql
rm -rf /var/lib/omero/OMERO5.4__0.sql

Loading…
Cancel
Save