From db907aaf50ac266cb8e9c9c02f8bdebb8d9167bb Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 30 Jul 2021 13:07:28 +0200 Subject: debian: anastasis has its own config --- debian/anastasis-httpd.postinst | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) (limited to 'debian/anastasis-httpd.postinst') diff --git a/debian/anastasis-httpd.postinst b/debian/anastasis-httpd.postinst index 77acf49..fcf9062 100644 --- a/debian/anastasis-httpd.postinst +++ b/debian/anastasis-httpd.postinst @@ -2,6 +2,7 @@ set -e +TALER_HOME="/var/lib/taler/" _USERNAME=anastasis-httpd _GROUPNAME=www-data @@ -10,39 +11,12 @@ _GROUPNAME=www-data dbc_dbfile_owner="${_USERNAME}:${_GROUPNAME}" dbc_dbfile_perms="0600" -# 1st argument will be the SECURITYTOKEN to use. -apache_install() { - echo -n "Starting Apache setup..." - mkdir -p /etc/apache2/conf-available - if [ ! -f /etc/apache2/conf-available/anastasis.conf ]; then - echo -n "..." - cat /etc/anastasis/apache.conf | sed -e "s/%SECURITYTOKEN%/$1/" >/etc/apache2/conf-available/anastasis.conf - fi - echo "Done" -} - -# 1st argument will be the SECURITYTOKEN to use. -nginx_install() { - echo -n "Starting Nginx setup..." - mkdir -p /etc/nginx/conf-available - if [ ! -f /etc/nginx/conf-available/anastasis.conf ]; then - echo -n "..." - cat /etc/anastasis/nginx.conf | sed -e "s/%SECURITYTOKEN%/$1/" >/etc/nginx/conf-available/anastasis.conf - fi - echo "Done" -} - . /usr/share/debconf/confmodule case "${1}" in configure) - db_start db_version 2.0 - # Read default values - CONFIG_FILE="/etc/default/anastasis" - TALER_HOME="/var/lib/taler/" - echo " User setup" # Creating taler users if needed if ! getent passwd ${_USERNAME} >/dev/null; then @@ -56,9 +30,6 @@ configure) dbc_go anastasis "$@" fi - cat >"/etc/systemd/system/anastasis-httpd.service" <