Unverified Commit b821b7ff authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

update.sh: consistently use carton

parent e55708dc
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -16,13 +16,13 @@ if [ "$1" = "with-deps" ]; then
	touch maintenance
	mv local local.old
	mv local.new/local .
	perl index.pl database migrate
	carton exec perl index.pl database migrate
	rm -f maintenance
	sudo systemctl start travelynx
elif perl index.pl database has-current-schema; then
	carton exec sudo systemctl start travelynx
elif carton exec perl index.pl database has-current-schema; then
	sudo systemctl reload travelynx
else
	sudo systemctl stop travelynx
	perl index.pl database migrate
	carton exec perl index.pl database migrate
	sudo systemctl start travelynx
fi