Always pre-configure bastille.conf on new installs

This commit is contained in:
Jose
2020-03-08 17:35:17 -04:00
parent 0176f72a1f
commit d7e6d27088
3 changed files with 9 additions and 8 deletions

View File

@@ -3,6 +3,7 @@
======================
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.36......Remove obsolete code, update config.
1.0.35......Use bastille built-in convert function.

View File

@@ -323,18 +323,18 @@ sys_symlinkdir()
fi
# Link bastile config file.
if [ -f "${INSTALLPATH}/${USRLOCAL}/etc/${APPNAME}/${APPNAME}.conf.sample" ]; then
cd ${INSTALLPATH}/${USRLOCAL}/etc/${APPNAME}
if [ ! -f "${APPNAME}.conf" ]; then
cp ${APPNAME}.conf.sample ${APPNAME}.conf
fi
else
#if [ -f "${INSTALLPATH}/${USRLOCAL}/etc/${APPNAME}/${APPNAME}.conf.sample" ]; then
# cd ${INSTALLPATH}/${USRLOCAL}/etc/${APPNAME}
# if [ ! -f "${APPNAME}.conf" ]; then
# cp ${APPNAME}.conf.sample ${APPNAME}.conf
# fi
#else
if [ -f "${BASTILLECONF_EXT}" ]; then
if [ ! -f "${INSTALLPATH}/${USRLOCAL}/etc/${APPNAME}/${APPNAME}.conf" ]; then
cp ${BASTILLECONF_EXT} ${INSTALLPATH}/${USRLOCAL}/etc/${APPNAME}/${APPNAME}.conf
fi
fi
fi
#fi
# Copy bastille shared.
if [ -d "${INSTALLPATH}/${USRLOCAL}/share/${APPNAME}" ]; then

View File

@@ -1 +1 @@
1.0.37
1.0.38