mirror of
https://github.com/YunoHost-Apps/hotspot_ynh.git
synced 2024-09-03 19:25:53 +02:00
15 lines
349 B
Text
15 lines
349 B
Text
|
#!/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/"
|
||
|
./upgrade
|
||
|
|
||
|
sudo rm -r "${tmpdir}/"
|
||
|
|
||
|
exit 0
|