added check for existing file
This commit is contained in:
parent
52baed55f8
commit
b77ae760a0
1 changed files with 5 additions and 1 deletions
|
@ -196,7 +196,11 @@ function update_database () {
|
||||||
function create_webserver_config () {
|
function create_webserver_config () {
|
||||||
if [ "${OS}" == "DEBIAN" ]; then
|
if [ "${OS}" == "DEBIAN" ]; then
|
||||||
if [ ! -f "${WEBSERVER_CONF}" ]; then
|
if [ ! -f "${WEBSERVER_CONF}" ]; then
|
||||||
cp ${ZAMMAD_DIR}/contrib/${WEBSERVER}/zammad.conf ${WEBSERVER_CONF}
|
if [ -f "/etc/${WEBSERVER}/sites-enabled/zammad.conf" ]; then
|
||||||
|
mv /etc/${WEBSERVER}/sites-enabled/zammad.conf ${WEBSERVER_CONF}
|
||||||
|
else
|
||||||
|
cp ${ZAMMAD_DIR}/contrib/${WEBSERVER}/zammad.conf ${WEBSERVER_CONF}
|
||||||
|
fi
|
||||||
ln -s ${WEBSERVER_CONF} /etc/${WEBSERVER}/sites-enabled/zammad.conf
|
ln -s ${WEBSERVER_CONF} /etc/${WEBSERVER}/sites-enabled/zammad.conf
|
||||||
fi
|
fi
|
||||||
if [ "${WEBSERVER}" == "apache2" ]; then
|
if [ "${WEBSERVER}" == "apache2" ]; then
|
||||||
|
|
Loading…
Reference in a new issue