mirror of
https://github.com/YunoHost-Apps/monitorix_ynh.git
synced 2024-09-03 19:46:06 +02:00
Move hook in etc/yunohost/hook.d
This commit is contained in:
parent
849655ba6c
commit
fd0916fafe
5 changed files with 4 additions and 10 deletions
|
@ -27,7 +27,7 @@ ynh_backup "/etc/nginx/conf.d/${domain}.d/${app}.conf" "nginx.conf"
|
|||
ynh_backup "/etc/nginx/conf.d/monitorix_status.conf" "monitorix_status.conf"
|
||||
|
||||
# Copy hook
|
||||
ynh_backup "/usr/share/yunohost/hooks/post_iptable_rules/50-$app"
|
||||
ynh_backup "/etc/yunohost/hooks.d/post_iptable_rules/50-$app"
|
||||
|
||||
# Copy Monitorix configuration
|
||||
ynh_backup "/etc/monitorix" "config"
|
||||
|
|
|
@ -51,10 +51,6 @@ config_nginx
|
|||
# Update monitorix configuration
|
||||
config_monitorix
|
||||
|
||||
# Add hook
|
||||
mkdir -p /usr/share/yunohost/hooks/post_iptable_rules
|
||||
cp ../conf/post_iptable_rules_hook /usr/share/yunohost/hooks/post_iptable_rules/50-$app
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
#=================================================
|
||||
|
|
|
@ -29,7 +29,6 @@ ynh_mysql_drop_user "$dbuser" || true
|
|||
|
||||
# Remove data
|
||||
ynh_secure_remove /var/lib/monitorix
|
||||
ynh_secure_remove /usr/share/yunohost/hooks/post_iptable_rules/50-$app
|
||||
|
||||
# Remove nginx config
|
||||
ynh_secure_remove "/etc/nginx/conf.d/monitorix_status.conf"
|
||||
|
|
|
@ -48,9 +48,8 @@ config_nginx
|
|||
# Update monitorix configuration
|
||||
config_monitorix
|
||||
|
||||
# Add hook
|
||||
mkdir -p /usr/share/yunohost/hooks/post_iptable_rules
|
||||
cp ../conf/post_iptable_rules_hook /usr/share/yunohost/hooks/post_iptable_rules/50-$app
|
||||
# Remove old hook if exist
|
||||
ynh_secure_remove /usr/share/yunohost/hooks/post_iptable_rules/50-$app
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
|
|
Loading…
Add table
Reference in a new issue