Tosoboso
Benutzer
- Registriert
- 27. Aug. 2012
- Beiträge
- 1.256
- Reaktionspunkte
- 52
- Punkte
- 74
Hi Sloefke '/var/packages/Zarafa/scripts/copy_licensed' should look like this now (tested and working):
#!/bin/sh
#copy licensed
test -e /usr/local/zarafa-licensed || mkdir -p /usr/local/zarafa-licensed
# DSM 5.1 addition start
test -e /usr/local/zarafa-licensed/run || mkdir -p /usr/local/zarafa-licensed/run
# DSM 5.1 addition end
cp -R /usr/local/zarafa/zarafa-licensed/* /usr/local/zarafa-licensed >/dev/null
touch /usr/local/zarafa/zarafa-licensed/licensed.log
chmod 777 /usr/local/zarafa/zarafa-licensed/licensed.log
#chmod 777 /var/lib/zarafa/userdb
# DSM 5.1 added var to end of tree as we now have run in mounts also
if mount | grep -q /usr/local/zarafa-licensed/var
then
echo "Zarafa licensed already mounted"
else
mount /var /usr/local/zarafa-licensed/var -o rebind
fi
# DSM 5.1 addition start
if mount | grep -q /usr/local/zarafa-licensed/run
then
echo "Zarafa licensed run (DSM 5.1) already mounted"
else
mount /run /usr/local/zarafa-licensed/run -o rebind
fi
# DSM 5.1 addition end
#!/bin/sh
#copy licensed
test -e /usr/local/zarafa-licensed || mkdir -p /usr/local/zarafa-licensed
# DSM 5.1 addition start
test -e /usr/local/zarafa-licensed/run || mkdir -p /usr/local/zarafa-licensed/run
# DSM 5.1 addition end
cp -R /usr/local/zarafa/zarafa-licensed/* /usr/local/zarafa-licensed >/dev/null
touch /usr/local/zarafa/zarafa-licensed/licensed.log
chmod 777 /usr/local/zarafa/zarafa-licensed/licensed.log
#chmod 777 /var/lib/zarafa/userdb
# DSM 5.1 added var to end of tree as we now have run in mounts also
if mount | grep -q /usr/local/zarafa-licensed/var
then
echo "Zarafa licensed already mounted"
else
mount /var /usr/local/zarafa-licensed/var -o rebind
fi
# DSM 5.1 addition start
if mount | grep -q /usr/local/zarafa-licensed/run
then
echo "Zarafa licensed run (DSM 5.1) already mounted"
else
mount /run /usr/local/zarafa-licensed/run -o rebind
fi
# DSM 5.1 addition end
; mind that the original file has some space and tabs not shown in forum post, so rather use original file and only add changes. RGS
und da sehr Viele das Problem haben, aber nicht mit Cmd-Line und vi befreundet sind, habe ich es in's Packet Z-Pull-Vmail integriert: