taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 03e99d4fd5365919b1d82916188145693f09e1cf
parent a069b85f53847e4decf65c24370f067524e15ac3
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat,  4 Mar 2023 10:20:08 +0100

-fix indentation

Diffstat:
Mnetzbon/functions.sh | 32++++++++++++++++----------------
Mnetzbon/setup-exchange.sh | 0
Mnetzbon/setup-merchant.sh | 0
3 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/netzbon/functions.sh b/netzbon/functions.sh @@ -24,11 +24,11 @@ function check_user() function create_users() { for n in exchange merchant - do - # In case users already exists, remove it - deluser $n || true - rm -rf /home/$n - adduser --disabled-password $n + do + # In case users already exists, remove it + deluser $n || true + rm -rf /home/$n + adduser --disabled-password $n done } @@ -37,16 +37,16 @@ function create_users() function assign_user_permissions() { for n in exchange merchant - do - adduser www-data $n - mkdir -p /home/$n/.config/ - # FIXME - # cp -r $n/* /home/$n/ - # TODO: No taler.conf is provided - # mv /home/$n/taler.conf /home/$n/.config/taler.conf - chmod 600 /home/$n/.config/taler.conf - chown -R $n:$n /home/$n/ - su - postgres -c "createuser $n" - su - postgres -c "createdb -O $n taler-$n" + do + adduser www-data $n + mkdir -p /home/$n/.config/ + # FIXME + # cp -r $n/* /home/$n/ + # TODO: No taler.conf is provided + # mv /home/$n/taler.conf /home/$n/.config/taler.conf + chmod 600 /home/$n/.config/taler.conf + chown -R $n:$n /home/$n/ + su - postgres -c "createuser $n" + su - postgres -c "createdb -O $n taler-$n" done } diff --git a/netzbon/setup-exchange.sh b/netzbon/setup-exchange.sh diff --git a/netzbon/setup-merchant.sh b/netzbon/setup-merchant.sh