Always pre-configure bastille.conf on new installs
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
======================
|
======================
|
||||||
Version Description
|
Version Description
|
||||||
|
|
||||||
|
1.0.38......Always pre-configure bastille.conf on new installs.
|
||||||
1.0.37......Add initial support for IPv6 and VNET.
|
1.0.37......Add initial support for IPv6 and VNET.
|
||||||
1.0.36......Remove obsolete code, update config.
|
1.0.36......Remove obsolete code, update config.
|
||||||
1.0.35......Use bastille built-in convert function.
|
1.0.35......Use bastille built-in convert function.
|
||||||
|
|||||||
+7
-7
@@ -323,18 +323,18 @@ sys_symlinkdir()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Link bastile config file.
|
# Link bastile config file.
|
||||||
if [ -f "${INSTALLPATH}/${USRLOCAL}/etc/${APPNAME}/${APPNAME}.conf.sample" ]; then
|
#if [ -f "${INSTALLPATH}/${USRLOCAL}/etc/${APPNAME}/${APPNAME}.conf.sample" ]; then
|
||||||
cd ${INSTALLPATH}/${USRLOCAL}/etc/${APPNAME}
|
# cd ${INSTALLPATH}/${USRLOCAL}/etc/${APPNAME}
|
||||||
if [ ! -f "${APPNAME}.conf" ]; then
|
# if [ ! -f "${APPNAME}.conf" ]; then
|
||||||
cp ${APPNAME}.conf.sample ${APPNAME}.conf
|
# cp ${APPNAME}.conf.sample ${APPNAME}.conf
|
||||||
fi
|
# fi
|
||||||
else
|
#else
|
||||||
if [ -f "${BASTILLECONF_EXT}" ]; then
|
if [ -f "${BASTILLECONF_EXT}" ]; then
|
||||||
if [ ! -f "${INSTALLPATH}/${USRLOCAL}/etc/${APPNAME}/${APPNAME}.conf" ]; then
|
if [ ! -f "${INSTALLPATH}/${USRLOCAL}/etc/${APPNAME}/${APPNAME}.conf" ]; then
|
||||||
cp ${BASTILLECONF_EXT} ${INSTALLPATH}/${USRLOCAL}/etc/${APPNAME}/${APPNAME}.conf
|
cp ${BASTILLECONF_EXT} ${INSTALLPATH}/${USRLOCAL}/etc/${APPNAME}/${APPNAME}.conf
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# Copy bastille shared.
|
# Copy bastille shared.
|
||||||
if [ -d "${INSTALLPATH}/${USRLOCAL}/share/${APPNAME}" ]; then
|
if [ -d "${INSTALLPATH}/${USRLOCAL}/share/${APPNAME}" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user