Skip to content

Commit 39486a3

Browse files
committed
update proxmox-backup-restore-image to 0.6.1+port2
1 parent 840c57c commit 39486a3

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash
2+
SH_DIR=$(cd $(dirname ${BASH_SOURCE[0]}); pwd)
3+
PKGNAME=$(basename $SH_DIR)
4+
5+
# submodule.list
6+
# zfsurl="https://gitea.lierfang.com/proxmox-mirrors/mirror_zfs"
7+
# ubuntukernelurl="https://gitea.lierfang.com/Proxmox-Port/linux-openeuler"
8+
9+
errlog(){
10+
echo $1
11+
exit 1
12+
13+
}
14+
15+
update_submodule(){
16+
cd $SH_DIR/$PKGNAME
17+
echo "init submodule"
18+
if [ -f "$SH_DIR/submodule.list" ];then
19+
source $SH_DIR/submodule.list
20+
git submodule set-url src/submodules/ubuntu-kernel "$zfsurl"
21+
git submodule set-url src/submodules/zfsonlinux "$ubuntukernelurl"
22+
fi
23+
git submodule update --init --recursive --depth=1
24+
}
25+
26+
echo "This is $PKGNAME build scripts"
27+
28+
update_submodule
29+
30+
. $SH_DIR/../common.sh
31+
32+
cd $SH_DIR/$PKGNAME
33+
exec_build_dpkg

0 commit comments

Comments
 (0)