Skip to content

Commit

Permalink
Update AlternC database schema
Browse files Browse the repository at this point in the history
* Inject in AlternC database table required to manage httpperm behavior
  • Loading branch information
camlafit committed Jul 4, 2024
1 parent a05c8f9 commit a39ac09
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions debian/postinst
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
#!/bin/bash -e

ALTERNC_FUNCTIONS_FILE="/usr/lib/alternc/functions.sh"
HTTPPERM_SQL_FILE="/usr/share/alternc/install/httpperm.sql"

if [ ! -r "${ALTERNC_FUNCTIONS_FILE}" ]; then
echo "Can't access ${ALTERNC_FUNCTIONS_FILE}"
exit 1
fi

# shellcheck source=/dev/null
. "${ALTERNC_FUNCTIONS_FILE}"

case "$1" in
configure)
mysql_query "$(cat ${HTTPPERM_SQL_FILE})"
printf "\tDon't forget to apply httpperm iptables rules as explained on Readme\n"
;;

Expand All @@ -11,5 +23,4 @@ esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#

#DEBHELPER#

0 comments on commit a39ac09

Please sign in to comment.