summary refs log tree commit diff stats
path: root/swag/etc-config-swag/www
diff options
context:
space:
mode:
Diffstat (limited to 'swag/etc-config-swag/www')
-rwxr-xr-xswag/etc-config-swag/www/rss_update.sh (renamed from swag/etc-config-swag/www/rss/update.sh)4
-rwxr-xr-xswag/etc-config-swag/www/wiki_update.sh12
2 files changed, 15 insertions, 1 deletions
diff --git a/swag/etc-config-swag/www/rss/update.sh b/swag/etc-config-swag/www/rss_update.sh
index 0edd021..97b4b31 100755
--- a/swag/etc-config-swag/www/rss/update.sh
+++ b/swag/etc-config-swag/www/rss_update.sh
@@ -1,5 +1,7 @@
 #!/bin/sh
 LINK=https://raw.githubusercontent.com/tontof/kriss_feed/master/
 FILENAME=index.php
+SUBFOLDER="$(dirname "$0")/rss/"
 
-wget -O $(dirname "$0")/$FILENAME $LINK$FILENAME
+mkdir $SUBFOLDER
+wget -O $SUBFOLDER$FILENAME $LINK$FILENAME
diff --git a/swag/etc-config-swag/www/wiki_update.sh b/swag/etc-config-swag/www/wiki_update.sh
new file mode 100755
index 0000000..8a9e7f0
--- /dev/null
+++ b/swag/etc-config-swag/www/wiki_update.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+LINK=https://pmwiki.org/pub/pmwiki/
+FILENAME=pmwiki-latest.tgz
+SCRIPT_PATH=$(dirname "$0")
+DOWNLOADED_PATH=$SCRIPT_PATH/$FILENAME
+
+wget -O $DOWNLOADED_PATH $LINK$FILENAME
+tar zxvf $DOWNLOADED_PATH
+
+var=(pmwiki-*)
+mv $var wiki
+rm $DOWNLOADED_PATH