Fix upgrade/restore script

This commit is contained in:
Julien Vaubourg
2016-05-14 21:24:20 +02:00
parent 852d331df3
commit 0637cdf401
3 changed files with 7 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
gitcommit=$(sudo yunohost app setting hotspot gitcommit)
gitcommit=$(sudo grep revision /etc/yunohost/apps/hotspot/status.json | sed 's/.*"revision": "\([^"]\+\)".*/\1/')
tmpdir=$(mktemp -dp /tmp/ hotspot-restore-XXXXX)
git clone https://github.com/labriqueinternet/hotspot_ynh.git "${tmpdir}/"