1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nodered_ynh.git synced 2024-09-03 19:46:25 +02:00

Fix flows data file name

This commit is contained in:
tituspijean 2021-09-18 17:55:46 +02:00
parent d9ca625be4
commit d5212cd275

View file

@ -71,6 +71,13 @@ if ynh_permission_exists --permission="admin"; then
ynh_permission_create --permission="endpoints" --url="/" --allowed="visitors" --show_tile=false
fi
# Flows were stored in file named after the hostname.
# Not very portable. Let's fix that.
if [ ! -f "$final_path/data/flows.json" ]; then
mv "$final_path/data/flows_$(hostname)_cred.json" "$final_path/data/flows_cred.json"
mv "$final_path/data/flows_$(hostname).json" "$final_path/data/flows.json"
fi
#=================================================
# CLOSING PORT
#=================================================