1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/chatonsinfos_ynh.git synced 2024-09-03 18:15:58 +02:00
chatonsinfos_ynh/hooks/post_app_remove
2023-11-29 21:32:15 +01:00

11 lines
345 B
Bash

#!/bin/bash
source /etc/yunohost/apps/chatonsinfos/scripts/_common.sh
source /usr/share/yunohost/helpers
[ "${YNH_APP_ID}" == "chatonsinfos" ] && exit 0
install_dir=/var/www/chatonsinfos/
ynh_secure_remove --file="$install_dir/public/${YNH_APP_ID}.properties"
sed -i "/^subs\.${YNH_APP_ID} =/d" "$install_dir/public/organization.properties"