Jacek Kowalski
2016-12-18 0c37eb5c1883bc3fa4cea45b5d9896f660edb5ed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
 
if [ ! -f /etc/openfire/profile ]; then
    cp -Rfp /etc/openfire-bak/* /etc/openfire
    cp -f /etc/default/openfire /etc/openfire/profile
fi
 
if [ ! -L /etc/default/openfire ]; then
    rm -f /etc/default/openfire
    ln -s /etc/openfire/profile /etc/default/openfire
fi
 
chown -Rf openfire:openfire /etc/openfire
chown -Rf openfire:openfire /var/lib/openfire
 
. /etc/init.d/openfire
 
sudo -u openfire $JAVA $DAEMON_OPTS