change glpi repo

This commit is contained in:
thomas 2022-05-02 22:37:15 +02:00
parent 12c7e6ade8
commit ebdea0727b

View file

@ -5,7 +5,7 @@ VERSION=10.0.0
[ -e ./lib/function.sh ] && source ./lib/function.sh [ -e ./lib/function.sh ] && source ./lib/function.sh
APP=glpi APP=glpi
DEPOT=https://github.com/tomamplius/glpi.git DEPOT=https://github.com/glpi-project/glpi.git
GIT_VERSION=${VERSION} GIT_VERSION=${VERSION}
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M) DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye DEBIAN_VERSION_CODENAME=bullseye
@ -46,14 +46,14 @@ makedeb(){
mv ${PATH_DEB}/usr/share/glpi/files ${PATH_DEB}/var/lib/glpi/ mv ${PATH_DEB}/usr/share/glpi/files ${PATH_DEB}/var/lib/glpi/
ln -s /var/lib/glpi/files ${PATH_DEB}/usr/share/glpi/files ln -s /var/lib/glpi/files ${PATH_DEB}/usr/share/glpi/files
mv ${PATH_DEB}/usr/share/glpi/marketplace ${PATH_DEB}/var/lib/glpi/ mv ${PATH_DEB}/usr/share/glpi/marketplace ${PATH_DEB}/var/lib/glpi/
ln -s /var/lib/glpi/marketplace ${PATH_DEB}/usr/share/glpi/marketplace ln -s /var/lib/glpi/marketplace ${PATH_DEB}/usr/share/glpi/marketplace
cp -r ${PATH_DEB}/usr/share/glpi/config/. ${PATH_DEB}/etc/glpi/ cp -r ${PATH_DEB}/usr/share/glpi/config/. ${PATH_DEB}/etc/glpi/
rm -fr ${PATH_DEB}/usr/share/glpi/config/ rm -fr ${PATH_DEB}/usr/share/glpi/config/
ln -s /etc/glpi/ ${PATH_DEB}/usr/share/glpi/config ln -s /etc/glpi/ ${PATH_DEB}/usr/share/glpi/config
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
} }