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:
parent
3b3a61e442
commit
3c3e13b46a
3 changed files with 8 additions and 7 deletions
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue