add sql db and config file to install scripts for saving
This commit is contained in:
parent
4b82097fd9
commit
ed38156e77
@ -2,3 +2,11 @@
|
||||
/usr/bin/systemctl enable taskmanager.service
|
||||
/var/taskmanager/init_db.py
|
||||
/sbin/service taskmanager start
|
||||
if [ -f /tmp/oldtaskmanagerconfig.ini ] ; then
|
||||
cp /tmp/oldtaskmanagerconfig.ini /var/taskmanager/taskmanager/config.ini
|
||||
rm /tmp/oldtaskmanagerconfig.ini
|
||||
fi
|
||||
if [ -f /tmp/oldtaskmanager.db ] ; then
|
||||
cp /tmp/oldtaskmanager.db /var/taskmanager/instance/taskmanager.db
|
||||
rm /tmp/oldtaskmanager.db
|
||||
fi
|
||||
|
6
build-deb/taskmanager/DEBIAN/preinst
Executable file
6
build-deb/taskmanager/DEBIAN/preinst
Executable file
@ -0,0 +1,6 @@
|
||||
if [ -f /var/taskmanager/taskmanager/config.ini ] ; then
|
||||
cp /var/taskmanager/taskmanager/config.ini /tmp/oldtaskmanagerconfig.ini
|
||||
fi
|
||||
if [ -f /var/taskmanager/instance/taskmanager.db ] ; then
|
||||
cp /var/taskmanager/instance/taskmanager.db /tmp/oldtaskmanager.db
|
||||
fi
|
@ -1,3 +1,9 @@
|
||||
#!/bin/sh
|
||||
/sbin/service taskmanager stop
|
||||
/usr/bin/systemctl disable taskmanager.service
|
||||
if [ -f /var/taskmanager/taskmanager/config.ini ] ; then
|
||||
cp /var/taskmanager/taskmanager/config.ini /tmp/oldtaskmanagerconfig.ini
|
||||
fi
|
||||
if [ -f /var/taskmanager/instance/taskmanager.db ] ; then
|
||||
cp /var/taskmanager/instance/taskmanager.db /tmp/oldtaskmanager.db
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user