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_change_url

10 lines
429 B
Text
Raw Permalink Normal View History

2023-08-08 10:25:41 +02:00
#!/bin/bash
source /usr/share/yunohost/helpers
[ "${YNH_APP_INSTANCE_NAME}" == "chatonsinfos" ] && exit 0
2023-08-29 05:53:09 +02:00
properties_path="/var/www/chatonsinfos/public/${YNH_APP_INSTANCE_NAME}.properties"
2023-08-29 03:44:51 +02:00
ynh_write_var_in_file --file="$properties_path" --key="service.website" --value="https://$YNH_APP_NEW_DOMAIN/$YNH_APP_NEW_PATH"
ynh_write_var_in_file --file="$properties_path" --key="file.datetime" --value="$(date '+%Y-%m-%dT%H:%M:%S')"