Commit b34215a8 authored by Philipp's avatar Philipp

removed deprecated config "lapses_url", updated update-skript to download...

removed deprecated config "lapses_url", updated update-skript to download personalized skin.conf for ortenberg
parent ec5d3bdf
Pipeline #306 passed with stage
in 32 seconds
......@@ -96,11 +96,6 @@
# News to display on home page, below cam images
#news='Ich arbeite im Moment an einem neuen Template. Hierbei kann es immernoch zu Problemen kommen.</p>'
# absolute url to lapse files.
# file format inside lapses_url:
# lapse-YYMMDD.mp4 or lapse-YYYY.mp4
lapses_url = https://www.rabenwetter.de/webcam/lapses/
# Title displayed in browser tab
site_title = Rabenwetter
# Description for use in meta tags
......
......@@ -181,6 +181,12 @@ then
curl -s https://gitlab.ambhost.net/stimpy/template_rabenwetter-own/raw/master/dist/ambnet/info.html.tmpl >template_rabenwetter/dist/info.html.tmpl
cp template_rabenwetter/tools/*.sh template_rabenwetter/dist/
chmod 644 template_rabenwetter/dist/*.sh
else if [ "$( hostname )" = "ortenbergwetter" ]
echo " downloading personalized files for ortenberg!"
curl -s https://gitlab.ambhost.net/stimpy/template_rabenwetter-own/raw/master/dist/ortenberg/contact.html.tmpl >template_rabenwetter/dist/contact.html.tmpl
curl -s https://gitlab.ambhost.net/stimpy/template_rabenwetter-own/raw/master/dist/ortenberg/info.html.tmpl >template_rabenwetter/dist/info.html.tmpl
curl -s https://gitlab.ambhost.net/stimpy/template_rabenwetter-own/raw/master/dist/ortenberg/skin.conf >template_rabenwetter/dist/skin.conf
then
else
mv template_rabenwetter/dist/info.html.tmpl template_rabenwetter/dist/info.html.tmpl.dist
mv template_rabenwetter/dist/contact.html.tmpl template_rabenwetter/dist/contact.html.tmpl.dist
......@@ -213,13 +219,17 @@ then
chown -R $WWWUSER:$WWWGROUP "$WWW/assets"
chmod -R 775 "$WWW/assets"
find "$WWW/assets/" -type f -exec chmod 664 "{}" \;
if [ "$( hostname )" = "rabenwetter" ]
then
echo " ohai (again) stimpy!"
cp template_rabenwetter/tools/*.sh "$WWW/"
chown -R $WWWUSER:$WWWGROUP $WWW/*.sh
chmod -R 644 $WWW/*.sh
fi
if [ "$( hostname )" = "rabenwetter" ]
then
echo " ohai (again) stimpy!"
cp template_rabenwetter/tools/*.sh "$WWW/"
chown -R $WWWUSER:$WWWGROUP $WWW/*.sh
chmod -R 644 $WWW/*.sh
else if [ "$( hostname )" = "ortenbergwetter" ]
then
echo " updating personalized config for ortenberg!"
cp template_rabenwetter/dist/skin.conf.dist "$skinpath/skin.conf"
fi
else
echo " WARNING: Cannot find existing website. Not updating static files."
echo " Maybe, you want to manually copy the assets folder from"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment