Always pre-configure bastille.conf on new installs
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user