Skip to content
Snippets Groups Projects
Commit 8aa3ee4f authored by Bob Mottram's avatar Bob Mottram
Browse files

Set app domain if not given

parent f504dd28
No related branches found
No related tags found
No related merge requests found
......@@ -811,6 +811,9 @@ function install_apps_from_webadmin {
app_name=$(echo "$linestr" | awk -F '_' '{print $2}' | awk -F ',' '{print $1}')
if [ -f "/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-${app_name}" ]; then
app_domain=$(echo "$linestr" | awk -F ',' '{print $2}')
if [ ! "$app_domain" ]; then
app_domain=${app_name}.local
fi
app_name_upper=$(echo "$app_name" | awk '{print toupper($0)}')
freedns_code=$(echo -n "$linestr" | awk -F ',' '{print $3}')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment