Update update.sh
This commit is contained in:
parent
6bca89630e
commit
c3f132fc26
@ -37,8 +37,8 @@ elif [ $PWD = "/tmp/tinycheck" ]; then
|
|||||||
python3 -m pip install -r assets/requirements.txt
|
python3 -m pip install -r assets/requirements.txt
|
||||||
|
|
||||||
echo "[+] Building new interfaces..."
|
echo "[+] Building new interfaces..."
|
||||||
cd /usr/share/tinycheck/app/frontend/ && npm install && npm run build
|
cd /usr/share/tinycheck/app/frontend/ && npm install && npm audit fix && npm run build
|
||||||
cd /usr/share/tinycheck/app/backend/ && npm install && npm run build
|
cd /usr/share/tinycheck/app/backend/ && npm install && npm audit fix && npm run build
|
||||||
|
|
||||||
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,4 +78,4 @@ elif [ $PWD = "/tmp/tinycheck" ]; then
|
|||||||
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
|
||||||
|
|
||||||
echo "[+] TinyCheck updated!"
|
echo "[+] TinyCheck updated!"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user