Use systemctl helper to avoid deadlocks with ynh 2.7 and check path avaibility with no deprecated method

This commit is contained in:
Julien Vaubourg
2017-08-30 14:30:14 +02:00
parent b125c82a8a
commit 5ee291480d
4 changed files with 47 additions and 7 deletions

View File

@@ -17,11 +17,13 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
source ./helpers
# Retrieve arguments
domain=$(sudo yunohost app setting hotspot domain)
# The End
sudo systemctl stop ynh-hotspot
ynh_systemctl stop ynh-hotspot
sudo systemctl disable ynh-hotspot
sudo yunohost service remove ynh-hotspot
sudo rm -f /etc/systemd/system/ynh-hotspot.service /usr/local/bin/ynh-hotspot