New process using mount point
This commit is contained in:
parent
637a60c3bf
commit
5d14cf2985
18 changed files with 217 additions and 244 deletions
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
STEP="envinit prebuild build makedeb"
|
||||
|
||||
envinit() {
|
||||
apt install -y build-essential git python wget ca-certificates
|
||||
wget -qO - https://deb.nodesource.com/setup_16.x | bash
|
||||
|
@ -27,13 +29,12 @@ build() {
|
|||
}
|
||||
|
||||
makedeb(){
|
||||
PATH_BUILD=$1
|
||||
PATH_DEB=$2
|
||||
GIT_VERSION=$3
|
||||
GIT_VERSION=$1
|
||||
DEB_VERSION=$2
|
||||
PATH_DEB=/tmp/dist/rootfs
|
||||
|
||||
cp -fr ${PATH_BUILD}/tmp/joplin/packages/* ${PATH_DEB}/usr/lib/joplin-server/
|
||||
cp -fr /tmp/joplin/packages/* ${PATH_DEB}/usr/lib/joplin-server/
|
||||
sed -i "s/%VERSION%/$DEB_VERSION/" /tmp/dist/rootfs/DEBIAN/control
|
||||
fakeroot dpkg-deb -Z gzip --build /tmp/dist/rootfs/ /tmp/dist/
|
||||
}
|
||||
echo $1
|
||||
FUNC=$1
|
||||
shift
|
||||
${FUNC} $*
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue