diff --git a/src/freedombone-utils-webadmin b/src/freedombone-utils-webadmin index bb1a1c35d5386d611a530b30530052cee4fbf336..662e2365079ab180fda51ca15ed221e70f499b4a 100755 --- a/src/freedombone-utils-webadmin +++ b/src/freedombone-utils-webadmin @@ -626,7 +626,15 @@ function image_install_web_admin { cp -r "$rootdir/usr/share/${PROJECT_NAME}/webadmin"/* "$rootdir$webadmin_install_dir" cp "$rootdir/usr/share/${PROJECT_NAME}/webadmin/${language_subdir}"/*.html "$rootdir$webadmin_install_dir" cp "$rootdir$webadmin_install_dir/${language_subdir}"/index.html "$rootdir$webadmin_install_dir"/index.prev - read_config_param ONION_ONLY + + # include onion only status in the config file + # because add/remove app screens alter depending upon this + if ! grep -q 'ONION_ONLY=' "$rootdir$CONFIGURATION_FILE"; then + echo "ONION_ONLY=$ONION_ONLY" >> "$rootdir$CONFIGURATION_FILE" + else + sed -i "s|ONION_ONLY=.*|ONION_ONLY=$ONION_ONLY|g" "$rootdir$CONFIGURATION_FILE" + fi + if [[ "$ONION_ONLY" != 'no' ]]; then web_admin_onion_only fi