|
|
@ -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 |