#!/bin/sh #--------------------------------------------------------------------------- # /var/install/bin/pre-setup-services-postgresql11-modules-menu # # Creation: 2007-06-11 dv # Last Update: 2023-07-23 09:11:10 # # Copyright (c) 2007 the eisfair team, team(at)eisfair(dot)org # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #--------------------------------------------------------------------------- # create the module file for postgresql # that was found in the menu-root from the system menu_file=$(ls /var/install/menu/setup.services.postgresql11.modules.*.menu | \ awk -F. '{print($1"."$2"."$3"."$4"."$5"."$NF)}' | uniq) { echo "" echo "postgresql11" echo "PostgreSQL module administration" for menu in ${menu_file} do package_entry="$(grep "package" ${menu} | sed 's###g')" menu_entry="$(grep "title" ${menu} | sed 's###g')" echo "${menu_entry}" done } > /var/install/menu/setup.services.postgresql11.modules.menu exit 0