update install scripts
This commit is contained in:
parent
b74c6a87b9
commit
864a75fe7b
@ -2,3 +2,11 @@
|
|||||||
/usr/bin/systemctl enable flaskapp.service
|
/usr/bin/systemctl enable flaskapp.service
|
||||||
/var/flaskapp/init_db.py
|
/var/flaskapp/init_db.py
|
||||||
/sbin/service flaskapp start
|
/sbin/service flaskapp start
|
||||||
|
if [ -f /tmp/oldflaskappconfig.ini ] ; then
|
||||||
|
cp /tmp/oldflaskappconfig.ini /var/flaskapp/flaskapp/config.ini
|
||||||
|
rm /tmp/oldflaskappconfig.ini
|
||||||
|
fi
|
||||||
|
if [ -f /tmp/oldflaskapp.db ] ; then
|
||||||
|
cp /tmp/oldflaskapp.db /var/flaskapp/instance/flaskapp.db
|
||||||
|
rm /tmp/oldflaskapp.db
|
||||||
|
fi
|
||||||
|
6
build-deb/flaskapp/DEBIAN/preinst
Executable file
6
build-deb/flaskapp/DEBIAN/preinst
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
if [ -f /var/flaskapp/flaskapp/config.ini ] ; then
|
||||||
|
cp /var/flaskapp/flaskapp/config.ini /tmp/oldflaskappconfig.ini
|
||||||
|
fi
|
||||||
|
if [ -f /var/flaskapp/instance/flaskapp.db ] ; then
|
||||||
|
cp /var/flaskapp/instance/flaskapp.db /tmp/oldflaskapp.db
|
||||||
|
fi
|
@ -1,3 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
/sbin/service flaskapp stop
|
/sbin/service flaskapp stop
|
||||||
/usr/bin/systemctl disable flaskapp.service
|
/usr/bin/systemctl disable flaskapp.service
|
||||||
|
if [ -f /var/flaskapp/flaskapp/config.ini ] ; then
|
||||||
|
cp /var/flaskapp/flaskapp/config.ini /tmp/oldflaskappconfig.ini
|
||||||
|
fi
|
||||||
|
if [ -f /var/flaskapp/instance/flaskapp.db ] ; then
|
||||||
|
cp /var/flaskapp/instance/flaskapp.db /tmp/oldflaskapp.db
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user