# HG changeset patch # User Pascal Bellard # Date 1301783342 -7200 # Node ID 4cb3956c4415f8fb8755024a2923d2ac62658862 # Parent 317ec0b8302e2689f67ff65ef2eba4a81cc5b6d8 tazwikiss: save/restore data diff -r 317ec0b8302e -r 4cb3956c4415 tazwikiss/rootfs/var/www/wiki/plugins/wkp_ListPlugins.sh --- a/tazwikiss/rootfs/var/www/wiki/plugins/wkp_ListPlugins.sh Sat Apr 02 13:52:03 2011 +0000 +++ b/tazwikiss/rootfs/var/www/wiki/plugins/wkp_ListPlugins.sh Sun Apr 03 00:29:02 2011 +0200 @@ -4,7 +4,27 @@ action() { - [ "$1" == "list" -o "$1" == "config" ] || return 1 + case "$1" in + list|config);; + backup) if [ -n "$(POST save)" ]; then + file=$(mktemp -p /tmp) + find */ | cpio -o -H newc | gzip -9 > $file + cat <%s%s\n",$1,$2 }')