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

Read config params when installing a specific app

parent 6d165d3c
No related branches found
No related tags found
No related merge requests found
......@@ -230,7 +230,6 @@ function install_apps_selected {
fi
fi
app_index=$((app_index+1))
done
# if no apps to be installed then don't do anything
......@@ -299,6 +298,9 @@ args="$1"
if [ "$2" ]; then
if [[ "$args" == "add" || "$args" == "remove" ]]; then
app_name_upper=$(echo "$2" | awk '{print toupper($0)}')
read_config_param "${app_name_upper}_DOMAIN_NAME"
read_config_param "${app_name_upper}_CODE"
if [[ "$args" == "add" ]]; then
select_specific_app "$2" "1"
else
......
......@@ -840,11 +840,11 @@ function install_apps_from_webadmin {
fi
fi
if ! /usr/local/bin/${PROJECT_NAME}-addremove add "${app_name}" > "$webadmin_install_dir/log.txt"; then
if ! /usr/local/bin/${PROJECT_NAME}-addremove add "${app_name}" > "$webadmin_install_dir/applog.txt"; then
sed -i "/$linestr/d" "$pending_installs"
web_admin_create_add_apps
fi
chown www-data:www-data "$webadmin_install_dir/log.txt"
chown www-data:www-data "$webadmin_install_dir/applog.txt"
fi
# remove the line
sed -i "/$linestr/d" "$pending_installs"
......
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