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

Add refresh header to scuttlebot app screen

parent 3b7364b6
No related branches found
No related tags found
No related merge requests found
......@@ -712,6 +712,13 @@ function web_admin_create_installed_apps {
cp "$app_template_filename" "$filename"
if [[ "$app_name" == 'scuttlebot' ]]; then
# add a refresh header so that new invites appear automatically once created by the daemon
if ! grep -q '"Refresh"' "$filename"; then
sed -i '/<head>/a <meta http-equiv="Refresh" content="30" charset="utf-8">' "$filename"
fi
fi
if ! grep -q 'SHOW_DOMAIN_IN_WEBADMIN=0' "$app_filename"; then
if [ ! -f "$webadmin_install_dir/app_qrcode_${app_name}.png" ]; then
if [ ! -f /usr/local/bin/myqr ]; then
......
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