migrate to luks
-- diese und die folgenden Zeilen werden ignoriert -- A https://svn.systemausfall.org/svn/cryptobox/branches/luks
This commit is contained in:
parent
e45dfa2ed8
commit
8d1c3aa9c4
364 changed files with 21139 additions and 0 deletions
22
luks/etc-defaults.d/userdocexport.sh
Executable file
22
luks/etc-defaults.d/userdocexport.sh
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
set -u
|
||||
|
||||
## diese Seiten aus dem Wiki ziehen und entschlacken
|
||||
SITES="CryptoBox CryptoBoxDev"
|
||||
DEST_PATH="cryptobox.conf.d/var/www/userdoc/"
|
||||
[ ! -e $DEST_PATH ] && echo "$DEST_PATH does not exist" && exit
|
||||
|
||||
for SITE in $SITES; do
|
||||
SITE_SRC="https://systemausfall.org/wikis/howto/$SITE"
|
||||
SITE_TMP="/tmp/$SITE"
|
||||
SITE_DEST="${DEST_PATH}${SITE}.html"
|
||||
|
||||
[ -e $SITE_TMP ] && echo "$SITE_TMP exists" && exit
|
||||
wget -O $SITE_TMP $SITE_SRC || exit
|
||||
sed -n "1,/\<title\>/p" $SITE_TMP > $SITE_DEST
|
||||
echo "<link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="../cryptobox.css">" >> $SITE_DEST
|
||||
echo -e "</head>\n<body>\n" >> $SITE_DEST
|
||||
sed -n /\<\!--\ start\ page\ --\>/,/\<\!--\ end\ page\ --\>/p $SITE_TMP >> $SITE_DEST
|
||||
echo -e "</body>\n</html>\n" >> $SITE_DEST
|
||||
rm $SITE_TMP
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue