Allow appmenus to be located using APPMENUS_DIR ENV variable
Allows Whonix appmenus to located in its own package
This commit is contained in:
parent
3adfc0385e
commit
fe6b1be0db
@ -77,13 +77,14 @@ export INSTALLDIR=mnt
|
||||
# Create App Menus
|
||||
# ------------------------------------------------------------------------------
|
||||
echo "--> Choosing appmenus whitelists..."
|
||||
_appmenus_dir="${APPMENUS_DIR-${SCRIPTSDIR}}"
|
||||
rm -f appmenus
|
||||
if [ -d "${SCRIPTSDIR}/appmenus_${DIST}_${TEMPLATE_FLAVOR}" ]; then
|
||||
ln -s "${SCRIPTSDIR}/appmenus_${DIST}_${TEMPLATE_FLAVOR}" appmenus
|
||||
elif [ -d "${SCRIPTSDIR}/appmenus_$DIST" ]; then
|
||||
ln -s "${SCRIPTSDIR}/appmenus_$DIST" appmenus
|
||||
elif [ -d "${SCRIPTSDIR}/appmenus" ]; then
|
||||
ln -s "${SCRIPTSDIR}/appmenus" appmenus
|
||||
if [ -d "${_appmenus_dir}/appmenus_${DIST}_${TEMPLATE_FLAVOR}" ]; then
|
||||
ln -s "${_appmenus_dir}/appmenus_${DIST}_${TEMPLATE_FLAVOR}" appmenus
|
||||
elif [ -d "${_appmenus_dir}/appmenus_$DIST" ]; then
|
||||
ln -s "${_appmenus_dir}/appmenus_$DIST" appmenus
|
||||
elif [ -d "${_appmenus_dir}/appmenus" ]; then
|
||||
ln -s "${_appmenus_dir}/appmenus" appmenus
|
||||
else
|
||||
ln -s "appmenus_generic" appmenus
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user