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