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-get install -y wget ca-certificates gnupg2 composer git php-simplexml php-gd
|
||||
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
|
||||
|
@ -23,18 +25,17 @@ build() {
|
|||
}
|
||||
|
||||
makedeb(){
|
||||
PATH_BUILD=$1
|
||||
PATH_DEB=$2
|
||||
GIT_VERSION=$3
|
||||
GIT_VERSION=$1
|
||||
DEB_VERSION=$2
|
||||
PATH_DEB=/tmp/dist/rootfs
|
||||
|
||||
find ${PATH_BUILD}/tmp/grocy -name .gitignore -exec rm {} \;
|
||||
cp -fr ${PATH_BUILD}/tmp/grocy/* ${PATH_DEB}/usr/share/grocy/
|
||||
find /tmp/grocy -name .gitignore -exec rm {} \;
|
||||
cp -fr /tmp/grocy/* ${PATH_DEB}/usr/share/grocy/
|
||||
cp ${PATH_DEB}/usr/share/grocy/config-dist.php ${PATH_DEB}/etc/grocy/config.php
|
||||
mv ${PATH_DEB}/usr/share/grocy/data ${PATH_DEB}/var/lib/grocy/
|
||||
ln -s /var/lib/grocy/data/ ${PATH_DEB}/usr/share/grocy/data
|
||||
ln -s /etc/grocy/config.php ${PATH_DEB}/usr/share/grocy/config.php
|
||||
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