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

Fix settings function check

parent 1dd0b457
No related branches found
No related tags found
No related merge requests found
......@@ -1632,7 +1632,7 @@ function update_app_settings {
app_function=$(echo "$settings_data" | awk -F ',' '{print $2}')
echo "app_function: ${app_function}" >> "$webadmin_install_dir/settingschange.txt"
if [ "$app_function" ]; then
if grep -q "function setting_${app_function} {" "$app_filename"; then
if grep -q "function ${app_name}_setting_${app_function} {" "$app_filename"; then
app_value=$(echo "$settings_data" | awk -F ',' '{print $3}')
echo "app_value: ${app_value}" >> "$webadmin_install_dir/settingschange.txt"
......@@ -1640,8 +1640,6 @@ function update_app_settings {
check_for_existing_processes $appsettings_script
ls -l $appsettings_script >> "$webadmin_install_dir/settingschange.txt"
{ echo "echo \"Beginning webadmin ${app_name} app settings change \$(date)\"";
echo "PROJECT_NAME=$PROJECT_NAME";
echo "source $app_filename";
......@@ -1650,8 +1648,6 @@ function update_app_settings {
echo "exit 0"; } >> $appsettings_script
chmod +x $appsettings_script
ls -l $appsettings_script >> "$webadmin_install_dir/settingschange.txt"
# run in a separate process
./$appsettings_script >> "$webadmin_install_dir/settingschange.txt"
fi
......
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