Skip to content

Commit

Permalink
Fix Vikunja install script to prevent database deletion upon updating (
Browse files Browse the repository at this point in the history
…#524)

* Fix issue with Vikunja update wiping DB and files

* use a single sed command

* change build.func to test install script

* another small change in order to test vikunja fix

* another change

* revert URL modification after successful test

* Update vikunja-install.sh

* update vikunja-install.sh
  • Loading branch information
vhsdream authored Nov 26, 2024
1 parent a4dd7f5 commit 9795d41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion install/vikunja-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ cd /opt
RELEASE=$(curl -s https://dl.vikunja.io/vikunja/ | grep -oP 'href="/vikunja/\K[0-9]+\.[0-9]+\.[0-9]+' | sort -V | tail -n 1)
wget -q "https://dl.vikunja.io/vikunja/$RELEASE/vikunja-$RELEASE-amd64.deb"
$STD dpkg -i vikunja-$RELEASE-amd64.deb
sudo sed -i 's/^ timezone: .*/ timezone: UTC/' /etc/vikunja/config.yml
sed -i 's|^ timezone: .*| timezone: UTC|' /etc/vikunja/config.yml
sed -i 's|"./vikunja.db"|"/etc/vikunja/vikunja.db"|' /etc/vikunja/config.yml
sed -i 's|./files|/etc/vikunja/files|' /etc/vikunja/config.yml
systemctl start vikunja.service
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
msg_ok "Installed Vikunja"
Expand Down

0 comments on commit 9795d41

Please sign in to comment.