diff --git a/scripts/install b/scripts/install index 1645950..5db1b72 100755 --- a/scripts/install +++ b/scripts/install @@ -103,6 +103,7 @@ ynh_add_config --template="sudoers" --destination="/etc/sudoers.d/$app" chown root:root /etc/sudoers.d/$app # Add a post app install hook to sync the app importer +mkdir -p /etc/yunohost/hooks.d/post_app_install ynh_add_config --template="sync_app_importer.sh" --destination="/etc/yunohost/hooks.d/post_app_install/${app}_sync_app_importer.sh" chown root:root /etc/yunohost/hooks.d/post_app_install/${app}_sync_app_importer.sh chmod +x /etc/yunohost/hooks.d/post_app_install/${app}_sync_app_importer.sh diff --git a/scripts/upgrade b/scripts/upgrade index 1f794e5..9ff7715 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -81,6 +81,7 @@ ynh_add_config --template="sudoers" --destination="/etc/sudoers.d/$app" chown root:root /etc/sudoers.d/$app # Add a post app install hook to sync the app importer +mkdir -p /etc/yunohost/hooks.d/post_app_install ynh_add_config --template="sync_app_importer.sh" --destination="/etc/yunohost/hooks.d/post_app_install/${app}_sync_app_importer.sh" chown root:root /etc/yunohost/hooks.d/post_app_install/${app}_sync_app_importer.sh chmod +x /etc/yunohost/hooks.d/post_app_install/${app}_sync_app_importer.sh