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

Include the word version

parent edc39899
No related branches found
No related tags found
No related merge requests found
......@@ -828,7 +828,8 @@ function webadmin_update_version {
webadmin_install_dir="/var/www/${local_hostname}/htdocs/admin"
if [ -f "$webadmin_install_dir/about.html" ]; then
VERSION=$(grep "VERSION=" "/usr/local/bin/${PROJECT_NAME}-vars" | grep -v DEBIAN | awk -F '"' '{print $2}')
sed -i "s|\"versiontext\".*|\"versiontext\">$VERSION</p>|g" "$webadmin_install_dir/about.html"
versionstr=$"Version $VERSION"
sed -i "s|\"versiontext\".*|\"versiontext\">$versionstr</p>|g" "$webadmin_install_dir/about.html"
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