This commit is contained in:
2025-04-27 09:56:14 +08:00
commit a924233573
37 changed files with 3724 additions and 0 deletions

27
wiki_patch/start.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/sh
# path: /usr/local/bin/start.sh
# Download if necessary a file
if [ ! -z "$DOWNLOAD" ]
then
ZIM=`basename $DOWNLOAD`
wget $DOWNLOAD -O "$ZIM"
# Set arguments
if [ "$#" -eq "0" ]
then
set -- "$@" $ZIM
fi
fi
CMD="/usr/local/bin/kiwix-serve -v --port=$2 $1"
echo $CMD
$CMD
# If error, print the content of /data
if [ $? -ne 0 ]
then
echo "Here is the content of /data:"
find /data -type f
fi