save old config.ini during .deb instalation

This commit is contained in:
fram3d 2023-11-01 17:16:25 +01:00
parent b94b94b0a3
commit 7435588363
Signed by: fram3d
GPG Key ID: 938920E709EEA32A
3 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,5 @@
#!/bin/sh
/usr/bin/systemctl enable luser.service
/sbin/service luser start
cp /tmp/oldluserconfig.ini /var/luser/luser/config.ini
rm /tmp/oldluserconfig.ini

2
build-deb/luser/DEBIAN/preinst Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
cp /var/luser/luser/config.ini /tmp/oldluserconfig.ini

View File

@ -1,3 +1,4 @@
#!/bin/sh
/sbin/service luser stop
/usr/bin/systemdctl disable luser.service
cp /var/luser/luser/config.ini /tmp/oldluserconfig.ini