add stopping of the service and make database copy optional
This commit is contained in:
parent
41faaea9b0
commit
fc852f98d3
@ -1,6 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
systemctl stop Terminwahl
|
||||||
cp -v target/release/terminwahl_back /usr/local/bin/terminwahl_back && chown terminwahl.terminwahl /usr/local/bin/terminwahl_back
|
cp -v target/release/terminwahl_back /usr/local/bin/terminwahl_back && chown terminwahl.terminwahl /usr/local/bin/terminwahl_back
|
||||||
cp -v terminwahl_back/db.sqlite /var/local/terminwahl/db.sqlite && chown terminwahl.terminwahl /var/local/terminwahl/db.sqlite
|
echo You may want to copy the database
|
||||||
|
echo cp -v terminwahl_back/db.sqlite /var/local/terminwahl/db.sqlite && chown terminwahl.terminwahl /var/local/terminwahl/db.sqlite
|
||||||
rsync -va --delete terminwahl_back/templates/ /var/local/terminwahl/templates/
|
rsync -va --delete terminwahl_back/templates/ /var/local/terminwahl/templates/
|
||||||
rsync -va --delete terminwahl_front/dist/ /var/local/terminwahl/dist/
|
rsync -va --delete terminwahl_front/dist/ /var/local/terminwahl/dist/
|
||||||
|
systemctl start Terminwahl
|
Loading…
Reference in New Issue
Block a user