mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Fix quotes preventing var interpretation + RANDOMHASH -> RANDOMID (it's not really a hash strictly speaking)
This commit is contained in:
parent
9b4110e72d
commit
a67bab334c
2 changed files with 5 additions and 5 deletions
6
debian/postinst
vendored
6
debian/postinst
vendored
|
@ -11,11 +11,11 @@ do_configure() {
|
|||
# Set document root permissions
|
||||
chown -R root:root /usr/share/yunohost/admin
|
||||
|
||||
# Replace RANDOMHASH with a random hash to invalidate
|
||||
# Replace RANDOMID with a random hash to invalidate
|
||||
# old cache ... we generate this locally on each machine
|
||||
# to avoid leaking stuff like the version
|
||||
RANDOMHASH=$(openssl rand -hex 4)
|
||||
sed -i 's/RANDOMHASH/$RANDOMHASH/g' /usr/share/yunohost/admin/index.html
|
||||
RANDOMID=$(openssl rand -hex 4)
|
||||
sed -i "s/RANDOMID/$RANDOMID/g" /usr/share/yunohost/admin/index.html
|
||||
}
|
||||
|
||||
# summary of how this script can be called:
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
<meta name="format-detection" content="telephone=no" />
|
||||
<meta name="viewport" content="user-scalable=no, width=device-width, height=device-height" />
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<link rel="stylesheet" media="screen" href="dist/css/style.min.css?version=RANDOMHASH">
|
||||
<link rel="stylesheet" media="screen" href="dist/css/style.min.css?version=RANDOMID">
|
||||
<link rel="shortcut icon" href="dist/img/ynhadmin_icon.png">
|
||||
<script type="text/javascript" src="dist/js/script.min.js?version=RANDOMHASH"></script>
|
||||
<script type="text/javascript" src="dist/js/script.min.js?version=RANDOMID"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
|
Loading…
Reference in a new issue