summarylogtreecommitdiffstats
path: root/stoq-server.install
diff options
context:
space:
mode:
authorVinicius Correa2018-03-25 05:51:09 +0000
committerVinicius Correa2018-03-25 05:51:09 +0000
commit9cb94a0f65a93de85f1177ae29938b2af4966650 (patch)
treebd4a7a9349528936813c14eda2cbadcfa15b4797 /stoq-server.install
parent5275d061454106ae69f2d9f50f2023ad31cdf053 (diff)
downloadaur-9cb94a0f65a93de85f1177ae29938b2af4966650.tar.gz
update to .install
Diffstat (limited to 'stoq-server.install')
-rw-r--r--stoq-server.install8
1 files changed, 6 insertions, 2 deletions
diff --git a/stoq-server.install b/stoq-server.install
index 136f82922b20..44292f676894 100644
--- a/stoq-server.install
+++ b/stoq-server.install
@@ -4,7 +4,7 @@ post_install() {
mkdir -p '/usr/share/stoqserver'
fi
- #Crete script stoqsconf.sh
+ #Crete script stoqsconf
if [ ! -d '/usr/share/stoqserver/stoqsconf' ]; then
cat << 'EOF' > /usr/bin/stoqsconf
#!/bin/bash
@@ -48,7 +48,7 @@ else
PG_PASSWORD="`cat /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c32`"
psql -p $PORT -c "ALTER USER stoqserver WITH PASSWORD '${PG_PASSWORD}';"
echo "*:*:*:stoqserver:${PG_PASSWORD}" > ${DIR}/.pgpass
- #chmod 0600 ${DIR}/.pgpass
+ chmod 0600 ${DIR}/.pgpass
fi
#Create a ssh key for remote support
@@ -84,6 +84,9 @@ EOF
fi
# Create stoqserver user if it doesn't exist
+ echo 'files = /etc/supervisor/conf.d/*.conf' ยป /etc/supervisord.conf
+
+ # Create stoqserver user if it doesn't exist
if ! getent group stoqserver >/dev/null; then
groupadd stoqserver
fi
@@ -93,6 +96,7 @@ EOF
fi
# Fix directory permissions
+ chown -R postgres:stoqserver /usr/share/stoqserver
chown -R stoqserver:stoqserver /usr/share/stoqserver
}