1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dato_ynh.git synced 2024-09-03 18:16:33 +02:00
dato_ynh/scripts/_common.sh

41 lines
1.1 KiB
Bash
Raw Normal View History

2021-03-11 00:34:24 +01:00
#!/bin/bash
#=================================================
# COMMON VARIABLES
#=================================================
# dependencies used by the app
pkg_dependencies="curl"
# nodejs version
nodejs_version=12
#=================================================
# PERSONAL HELPERS
#=================================================
dato_setup_config_files() {
# create config directory (if it doesn't exist yet)
[ -d "$final_path/config/" ] || mkdir "$final_path/config/"
2021-03-11 00:34:24 +01:00
# setup public dato config
ynh_add_config --template="../conf/public.js" --destination="$final_path/config/public.js"
# setup private dato config
if [[ $autosynchronize == true ]]; then
ynh_add_config --template="../conf/private-autosync.js" --destination="$final_path/config/private.js"
else
ynh_add_config --template="../conf/private.js" --destination="$final_path/config/private.js"
fi
}
#=================================================
# EXPERIMENTAL HELPERS
#=================================================
#=================================================
# FUTURE OFFICIAL HELPERS
#=================================================