X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plc.d%2Fpostgresql;h=989cd7ee2db6492a618d26a3a17b6dd71d445e3f;hb=428f3d0bc1d3148bba33bc6b6ea4346de2ced398;hp=c3c37b11b931a276e9f3938bd38540f4bfd51656;hpb=07fc16415f6c9f1a8e9668f1dd442109bfe9cd15;p=plcapi.git diff --git a/plc.d/postgresql b/plc.d/postgresql index c3c37b1..989cd7e 100755 --- a/plc.d/postgresql +++ b/plc.d/postgresql @@ -152,7 +152,8 @@ case "$1" in if [ -z "$PLC_DB_PASSWORD" ] ; then PLC_DB_PASSWORD=$(uuidgen) plc-config --category=plc_db --variable=password --value="$PLC_DB_PASSWORD" --save=$local_config $local_config - service plc reload + #service plc reload + reload force fi if ! psql -U $PLC_DB_USER -c "" template1 >/dev/null 2>&1 ; then psql -U postgres -c "CREATE USER $PLC_DB_USER PASSWORD '$PLC_DB_PASSWORD'" template1