mirror of
https://gitlab.com/flectra-hq/flectra.git
synced 2026-11-02 20:30:20 -06:00
[PATCH] upstream for base
This commit is contained in:
1 parent
4419cc1f51
commit
8be11d4595
5 files changed
+54
-55
No files matched your search
Vendored
+1
@@ -34,6 +34,7 @@ Depends:
|
||||
python3-libsass,
|
||||
python3-lxml,
|
||||
python3-mako,
|
||||
python3-num2words,
|
||||
python3-ofxparse,
|
||||
python3-passlib,
|
||||
python3-polib,
|
||||
|
||||
Vendored
+2
-2
@@ -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
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
|
||||
Reference in new issue
Block a user