]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Parametrize dump-wikis.sh and backup mediawiki sites in dump-wikis.sh
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 26 Jan 2017 22:05:04 +0000 (00:05 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 26 Jan 2017 22:05:04 +0000 (00:05 +0200)
refs #6916

releng/doc/dump-mysql-db.sh [changed mode: 0644->0755]
releng/doc/dump-wikis.sh [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index ae2a64d..de255c2
@@ -1,9 +1,13 @@
 #!/bin/bash
 
+if [ $# -lt 3 ]; then
+       echo "Usage: $0 <major> <minor> <service>"
+       exit -1
+fi
 
-major=1
-minor=25
-service=0
+major=$1
+minor=$2
+service=$3
 ver=${major}.${minor}.${service}
 
 mkdir ${ver}
@@ -19,3 +23,7 @@ IFS=$OLDIFS
 cd ..
 tar zcvf ${ver}.tar.gz ${ver}
 rm -rf ${ver}
+
+echo "Packing up mediawiki sites"
+tar zcvf ${ver}-dev-site.tar.gz /var/www/http-dev.simantics.org/
+tar zcvf ${ver}-enduser-site.tar.gz /var/www/https-www.simantics.org/end_user_wiki/