mirror of
https://github.com/YunoHost-Apps/glitchsoc_ynh.git
synced 2024-09-03 19:15:59 +02:00
Acl for Postgres user dump
This commit is contained in:
parent
51a9103c40
commit
6e6f3cd38d
1 changed files with 4 additions and 1 deletions
|
@ -81,6 +81,9 @@ sudo su -c "psql" postgres <<< \
|
||||||
sudo su -c "psql" postgres <<< \
|
sudo su -c "psql" postgres <<< \
|
||||||
"update pg_database set datistemplate='true' where datname='template1';"
|
"update pg_database set datistemplate='true' where datname='template1';"
|
||||||
|
|
||||||
|
# Acl for Postgres user dump
|
||||||
|
sudo setfacl -R -m u:postgres:r $YNH_APP_BACKUP_DIR || true
|
||||||
|
|
||||||
# Restore db
|
# Restore db
|
||||||
ynh_psql_create_db_without_password "$app"
|
ynh_psql_create_db_without_password "$app"
|
||||||
sudo su - postgres <<COMMANDS
|
sudo su - postgres <<COMMANDS
|
||||||
|
@ -121,4 +124,4 @@ sudo yunohost service add mastodon-sidekiq
|
||||||
sudo yunohost service add mastodon-streaming
|
sudo yunohost service add mastodon-streaming
|
||||||
|
|
||||||
# Reload services
|
# Reload services
|
||||||
sudo systemctl reload nginx
|
sudo systemctl reload nginx
|
||||||
|
|
Loading…
Reference in a new issue