1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/sogo_ynh.git synced 2024-09-03 20:26:07 +02:00

Cleanup after auto patch

This commit is contained in:
Josué Tille 2024-08-31 11:05:29 +02:00
parent 3b3a61e442
commit 3c3e13b46a
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5
3 changed files with 8 additions and 7 deletions

View file

@ -64,11 +64,11 @@ set_permissions() {
chown -R "$app:$app" "/etc/$app"
chmod -R u=rwX,g=rX,o= "/etc/$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 | chown -R "$app:$app" "/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 -R u=rwX,g=rX,o= "/var/log/$app"
chown -R "$app:$app" "/var/log/$app"
chmod -R u=rwX,g=rX,o= "/var/log/$app"
#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 root: "/etc/cron.d/$app"
#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 644 "/etc/cron.d/$app"
chown root: "/etc/cron.d/$app"
chmod 644 "/etc/cron.d/$app"
}
is_url_handled() {

View file

@ -12,9 +12,9 @@ ynh_script_progression "Ensuring downward compatibility..."
ynh_script_progression "Migrating database if needed..."
if ynh_app_upgrading_from_version_before_or_equal_to 4.0.0~ynh0; then
ynh_replace --match __APP__ --replace $app --file migrations/3.2-4.0.sh
ynh_replace --match __DBUSER__ --replace $db_user --file migrations/3.2-4.0.sh
ynh_replace --match __DBPASS__ --replace $db_pwd --file migrations/3.2-4.0.sh
ynh_replace --match=__APP__ --replace="$app" --file=migrations/3.2-4.0.sh
ynh_replace --match=__DBUSER__ --replace="$db_user" --file=migrations/3.2-4.0.sh
ynh_replace --match=__DBPASS__ --replace="$db_pwd" --file=migrations/3.2-4.0.sh
bash migrations/3.2-4.0.sh
fi

View file

@ -7,3 +7,4 @@ test_format = 1.0
test_upgrade_from.cc07f5da79498ef948c31a99f6ace9ad0a5b9ec1.name = "Before group permission support"
test_upgrade_from.2fc174c57586df38506a07195decb08eed02f55f.name = "Before refactoring"
test_upgrade_from.732e6d2962ed7e0fb9cb7a807e2b095adeab35c3.name = "last packagingv1 version"
test_upgrade_from.e3bb393e5e40ddb2a3c01cfc23b9f43f27f4ff27.name = "Before helper 2.1"