added deply scipt

This commit is contained in:
Zdenek Borovec 2023-12-21 15:13:32 +01:00
parent c5c850e83d
commit cc7488a190
2 changed files with 9 additions and 1 deletions

8
deploy Normal file
View file

@ -0,0 +1,8 @@
#!bin/bash
# Copy the docs and assets directories onto the server
cp -r docs /srv/http
cp -r assets /srv/http
# Update the header css GET parameter
sed -i "s/TIMESTAMP/"$(date +%s)"/g" /srv/http/docs/common/header.php

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<link rel="stylesheet" href="https://assets.zdenekborovec.cz/common/styles.css?2023-12-19T18-25"> <link rel="stylesheet" href="https://assets.zdenekborovec.cz/common/styles.css?TIMESTAMP">
<style> <style>
#header { #header {