summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Siraut <csiraut@entrouvert.com>2019-01-29 10:35:09 (GMT)
committerChristophe Siraut <csiraut@entrouvert.com>2019-01-29 17:02:19 (GMT)
commit3b0bba4f0e9b3f2bc02c3d70304e9d7719aed400 (patch)
tree502980346a3862cc63aebfa984e079cfa708b7b6
parent22aadd50f498b4ba8bca146e2fac46f83556356d (diff)
downloadpublik-client-scripts-3b0bba4f0e9b3f2bc02c3d70304e9d7719aed400.zip
publik-client-scripts-3b0bba4f0e9b3f2bc02c3d70304e9d7719aed400.tar.gz
publik-client-scripts-3b0bba4f0e9b3f2bc02c3d70304e9d7719aed400.tar.bz2
add publik-hautes-alpes-scripts (#30165)v0.1
-rw-r--r--.gitignore1
-rw-r--r--debian/control7
-rw-r--r--debian/publik-hautes-alpes-scripts.cron.hourly6
3 files changed, 13 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 73ade75..2a887c0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
debian/.debhelper/
debian/*.debhelper.log
debian/publik-strasbourg-scripts/
+debian/publik-hautes-alpes-scripts/
sdist
diff --git a/debian/control b/debian/control
index 0dd3702..75f05ab 100644
--- a/debian/control
+++ b/debian/control
@@ -9,7 +9,8 @@ Homepage: https://git.entrouvert.org/publik-client-scripts.git
Package: publik-client-scripts
Architecture: all
Depends: ${misc:Depends},
- publik-strasbourg-scripts
+ publik-strasbourg-scripts,
+ publik-hautes-alpes-scripts
Description: Meta package with all Publik client scripts
Package: publik-strasbourg-scripts
@@ -17,3 +18,7 @@ Architecture: all
Depends: ${misc:Depends}, python-elasticsearch
Description: Publik scripts for Strasbourg
+Package: publik-hautes-alpes-scripts
+Architecture: all
+Depends: ${misc:Depends}
+Description: Publik scripts for Hautes-Alpes
diff --git a/debian/publik-hautes-alpes-scripts.cron.hourly b/debian/publik-hautes-alpes-scripts.cron.hourly
new file mode 100644
index 0000000..1d8b979
--- /dev/null
+++ b/debian/publik-hautes-alpes-scripts.cron.hourly
@@ -0,0 +1,6 @@
+#! /bin/sh
+
+test -d /var/lib/combo || exit 0
+test -r /usr/share/publik/themes/publik-base/templates/variants/hautes-alpes-2018/prepare-template.py || exit 0
+
+cd /usr/share/publik/themes/publik-base/templates/variants/hautes-alpes-2018 && /usr/bin/python prepare-template.py