[PATCH] upstream for base

This commit is contained in:
himanee committed 2023-08-17 14:58:34 +05:30
1 parent 4419cc1f51
commit 8be11d4595
5 files changed
+54 -55

No files matched your search

+1
View File
@@ -34,6 +34,7 @@ Depends:
python3-libsass,
python3-lxml,
python3-mako,
python3-num2words,
python3-ofxparse,
python3-passlib,
python3-polib,
+2 -2
View File
@@ -12,6 +12,8 @@ case "${1}" in
configure)
if ! getent passwd | grep -q "^flectra:"; then
adduser --system --home $FLECTRA_DATA_DIR --quiet --group $FLECTRA_USER
# Data dir
chown $FLECTRA_USER:$FLECTRA_GROUP $FLECTRA_DATA_DIR
fi
# Register "$FLECTRA_USER" as a postgres user with "Create DB" role attribute
su - postgres -c "createuser -d -R -S $FLECTRA_USER" 2> /dev/null || true
@@ -22,8 +24,6 @@ case "${1}" in
mkdir -p $FLECTRA_LOG_DIR
chown $FLECTRA_USER:$FLECTRA_GROUP $FLECTRA_LOG_DIR
chmod 0750 $FLECTRA_LOG_DIR
# Data dir
chown $FLECTRA_USER:$FLECTRA_GROUP $FLECTRA_DATA_DIR
;;
*)
;;