mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[enh] Use current pkg version in index.html to update browser cache.
This commit is contained in:
parent
85e7bf7249
commit
194de9213d
1 changed files with 10 additions and 0 deletions
10
debian/rules
vendored
10
debian/rules
vendored
|
@ -4,5 +4,15 @@
|
|||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
# Get package version
|
||||
# dpkg-parsechangelog > 1.17 could use dpkg-parsechangelog --show-field Version
|
||||
DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_install:
|
||||
# Replace VERSION with current package version to prevent web browser
|
||||
# to serve old css/js files
|
||||
sed -i 's/VERSION/'$DEBVERS'/g' src/index.html
|
||||
dh_install
|
Loading…
Add table
Reference in a new issue