* preserve userdata when upgrading
This commit is contained in:
parent
0c9004a866
commit
7ba342eb3d
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue