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

Include onion only status in config file

parent 96c1e05f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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