mirror of
https://github.com/YunoHost-Apps/yeswiki_ynh.git
synced 2024-09-03 18:05:56 +02:00
Create post_app_install hook folder if it does not exist
This commit is contained in:
parent
8af61e56ee
commit
6125bfcdc5
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue