1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hotspot_ynh.git synced 2024-09-03 19:25:53 +02:00
hotspot_ynh/scripts/restore

15 lines
354 B
Text
Raw Normal View History

2015-07-25 16:33:38 +02:00
#!/bin/bash
gitcommit=$(sudo yunohost app setting hotspot gitcommit)
tmpdir=$(mktemp -dp /tmp/ hotspot-restore-XXXXX)
git clone https://github.com/labriqueinternet/hotspot_ynh.git "${tmpdir}/"
git --work-tree "${tmpdir}/" --git-dir "${tmpdir}/.git/" reset --hard "${gitcommit}"
cd "${tmpdir}/scripts/"
2015-07-26 10:43:44 +02:00
bash ./upgrade
2015-07-25 16:33:38 +02:00
sudo rm -r "${tmpdir}/"
exit 0