Skip to content
Snippets Groups Projects
Verified Commit 88a06e7c authored by Konrad Botor's avatar Konrad Botor
Browse files

Fix for permissions of haf_postgresql_conf.d and postgresql_logs directories

parent 8c4a2c78
No related branches found
No related tags found
6 merge requests!627merge in fix for get_current_block_age,!626Fix get_current_block_age function to avoid healthcheck fails,!622merge develop to master,!599merge ( with merge commit) develop to master,!597Merge develop to master for release,!233Permission fix
Pipeline #61902 passed
shared_buffers = 32GB shared_buffers = 32GB
hba_file = '/home/hived/datadir/haf_postgresql.conf.d/custom_pg_hba.conf' # host-based authentication file hba_file = '/home/hived/datadir/haf_postgresql_conf.d/custom_pg_hba.conf' # host-based authentication file
logging_collector = on logging_collector = on
log_directory = '/home/hived/datadir/postgresql_logs/' log_directory = '/home/hived/datadir/postgresql_logs/'
# log_file_mode = 0640
...@@ -66,8 +66,16 @@ then ...@@ -66,8 +66,16 @@ then
sudo --user=hived -n mkdir -p /home/hived/datadir sudo --user=hived -n mkdir -p /home/hived/datadir
fi fi
# Be sure this directory exists # Fix permissions on data and shm directories
sudo -n chown -Rc hived:users /home/hived/datadir
sudo -n chown -Rc hived:users /home/hived/shm_dir
# Be sure those directories exists and have right permissions
sudo --user=hived -n mkdir -p /home/hived/datadir/blockchain sudo --user=hived -n mkdir -p /home/hived/datadir/blockchain
sudo --user=hived -n mkdir -p /home/hived/datadir/postgresql_logs
sudo --user=hived -n mkdir -p /home/hived/datadir/haf_postgresql_conf.d
sudo -n chown -Rc postgres:postgres /home/hived/datadir/postgresql_logs
sudo -n chown -Rc postgres:postgres /home/hived/datadir/haf_postgresql_conf.d
if [ -d "$PGDATA" ] if [ -d "$PGDATA" ]
then then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment