1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pgadmin_ynh.git synced 2024-09-03 19:56:38 +02:00

Cleanup after auto patch

This commit is contained in:
Josué Tille 2024-08-31 10:59:41 +02:00
parent a30ebdd929
commit d1cd1532af
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5
3 changed files with 7 additions and 8 deletions

View file

@ -53,10 +53,8 @@ ram.runtime = "200M"
[resources.system_user]
allow_email = true
home = "/opt/yunohost/__APP__"
[resources.install_dir]
dir = "/opt/yunohost/__APP__"
[resources.data_dir]

View file

@ -71,15 +71,15 @@ install_source() {
set_permission() {
# Set permission
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown "$app:$app" -R "$install_dir"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod u+rw,o= -R "$install_dir"
chown "$app:$app" -R "$install_dir"
chmod u+rw,o= -R "$install_dir"
chown "$app:$app" -R "$data_dir"
chmod u+rw,o= -R "$data_dir"
#REMOVEME? Assuming ynh_config_add_logrotate is called, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown "$app:$app" -R /var/log/"$app"
#REMOVEME? Assuming ynh_config_add_logrotate is called, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod u=rwX,g=rX,o= -R /var/log/"$app"
chown "$app:$app" -R /var/log/"$app"
chmod u=rwX,g=rX,o= -R /var/log/"$app"
# Criticals files
#REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown "$app":root "$data_dir"/master_pwd
#REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod u=r,g=,o= "$data_dir"/master_pwd
chown "$app":root "$data_dir"/master_pwd
chmod u=r,g=,o= "$data_dir"/master_pwd
chown "$app":root "$install_dir"/postgres-reg.ini
chmod u=r,g=,o= "$install_dir"/postgres-reg.ini
}

View file

@ -19,3 +19,4 @@ test_format = 1.0
test_upgrade_from.067601ed5bb19dde70f74a1fa1f6230a30efe6b5.name = "7.2~ynh1"
test_upgrade_from.da90e7957a1a365f3c840df02c41cd14592030db.name = "Last packaging v1 version"
test_upgrade_from.55a5fd67889da37d03a5d4614168db76a8817cdb.name = "Pre improvements"
test_upgrade_from.b1cd2eff160238a6059c9806b7301edc9edd8572.name = "Before helper 2.1"