Some SlackBuild scripts for Slackware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
842 B

#!/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
}
for f in backup.cfg hibernate.properties ice.config internal.cfg ivysettings.xml logback-cli.xml logback-indexing-cli.xml logback-indexing.xml logback.xml master.cfg node1.cfg node2.cfg omero.properties rollover.cfg testdropbox.config grid/default.xml grid/templates.xml ; do
config /etc/omero/$f.new
done
if ! grep ^omero /etc/group > /dev/null ; then
/usr/sbin/groupadd -g 270 omero
fi
if ! grep ^omero /etc/passwd > /dev/null ; then
/usr/sbin/useradd -u 270 -c Omero -d /var/lib/omero -g omero omero
mkdir -p /var/lib/omero
chown omero:omero /var/lib/omero
fi
chown -R omero /opt/omero /etc/omero