Compare commits

...

2 Commits

Author SHA1 Message Date
7435588363
save old config.ini during .deb instalation 2023-11-01 17:16:25 +01:00
b94b94b0a3
add deb files into .gitignore 2023-11-01 16:40:39 +01:00
4 changed files with 7 additions and 0 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
__pycache__ __pycache__
luser.deb
build-deb/luser/var/

View File

@ -1,3 +1,5 @@
#!/bin/sh #!/bin/sh
/usr/bin/systemctl enable luser.service /usr/bin/systemctl enable luser.service
/sbin/service luser start /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 #!/bin/sh
/sbin/service luser stop /sbin/service luser stop
/usr/bin/systemdctl disable luser.service /usr/bin/systemdctl disable luser.service
cp /var/luser/luser/config.ini /tmp/oldluserconfig.ini