1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps.git synced 2025-03-09 15:50:00 +00:00

Merge branch 'develop' of github.com:Ysurac/openmptcprouter-vps into develop

This commit is contained in:
Ycarus (Yannick Chabanois) 2021-03-10 09:30:38 +00:00
commit bf160e67a6
4 changed files with 27 additions and 3 deletions

6
debian/postinst vendored
View file

@ -5,8 +5,10 @@ test $DEBIAN_SCRIPT_DEBUG && set -v -x
# use debconf
. /usr/share/debconf/confmodule
cd /usr/share/omr-server
LOCALFILES=no SOURCES=no sh debian9-x86_64.sh
sed -i -e "s/^LOCALFILES=.*$/LOCALFILES=no/" -e "s/^SOURCES=.*$/SOURCES=no/" debian9-x86_64.sh
echo 'To finish installation reboot'
systemctl enable omr-update
db_stop

3
debian/rules vendored
View file

@ -9,8 +9,9 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
override_dh_auto_install:
mkdir -p $(CURDIR)/debian/omr-server/usr/share/omr-server
find . -type f -not -iname '*/debian/*' -not -iname '*/.git/*' -exec cp '{}' "$(CURDIR)/debian/omr-server/usr/share/omr-server/{}" ';'
find . -type f -xtype f -not -iname '*/debian/*' -not -iname '*/.git/*' -exec cp '{}' "$(CURDIR)/debian/omr-server/usr/share/omr-server/{}" ';'
cp -r ./shorewall4 $(CURDIR)/debian/omr-server/usr/share/omr-server/
cp -r ./shorewall6 $(CURDIR)/debian/omr-server/usr/share/omr-server/
cp -r ./bin $(CURDIR)/debian/omr-server/usr/share/omr-server/
cp omr-update.service.in /lib/systemd/system/omr-update.service