* preserve userdata when upgrading

This commit is contained in:
Reinhard Pointner 2015-11-20 15:18:23 +00:00
parent 0c9004a866
commit 7ba342eb3d
2 changed files with 12 additions and 0 deletions

View File

@ -1,2 +1,8 @@
#!/bin/sh
# import user data
DATA_TAR="/tmp/$SYNOPKG_PKGNAME.data.tgz"
cd "$SYNOPKG_PKGDEST" && tar -xvzf "$DATA_TAR" && rm "$DATA_TAR"
exit 0

View File

@ -1,2 +1,8 @@
#!/bin/sh
# export user data
DATA_TAR="/tmp/$SYNOPKG_PKGNAME.data.tgz"
cd "$SYNOPKG_PKGDEST" && tar -cvzf "$DATA_TAR" "data/"
exit 0