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:
parent
d9ca625be4
commit
d5212cd275
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue