Correcting error

This commit is contained in:
Félix Aime 2021-06-10 21:11:41 +02:00
parent 772ff95108
commit 436870960d

View File

@ -42,7 +42,7 @@ elif [ $PWD = "/tmp/tinycheck" ]; then
echo "[+] Updating the database scheme..." echo "[+] Updating the database scheme..."
cd /usr/share/tinycheck/ cd /usr/share/tinycheck/
sqlite3 tinycheck.sqlite3 < assets/scheme.sql 2>/dev/null sqlite3 tinycheck.sqlite3 < /tmp/tinycheck/assets/scheme.sql 2>/dev/null
echo "[+] Updating current configuration with new values." echo "[+] Updating current configuration with new values."
if ! grep -q reboot_option /usr/share/tinycheck/config.yaml; then if ! grep -q reboot_option /usr/share/tinycheck/config.yaml; then
@ -78,9 +78,6 @@ elif [ $PWD = "/tmp/tinycheck" ]; then
service tinycheck-frontend restart service tinycheck-frontend restart
service tinycheck-watchers restart service tinycheck-watchers restart
echo "[+] Deleting assets folder"
rm -rf /usr/share/tinycheck/assets/
echo "[+] Updating the TinyCheck version" echo "[+] Updating the TinyCheck version"
cd /tmp/tinycheck && git tag | tail -n 1 | xargs echo -n > /usr/share/tinycheck/VERSION cd /tmp/tinycheck && git tag | tail -n 1 | xargs echo -n > /usr/share/tinycheck/VERSION