Remove sudo prefixes (not needed any more in YunoHost 2.6)

This commit is contained in:
Jimmy Monin
2017-07-05 18:10:43 +02:00
parent fad80c3cfb
commit 942d0c033f
6 changed files with 38 additions and 38 deletions

View File

@@ -32,10 +32,10 @@ ynh_remove_systemd_config
# REMOVE SERVICE FROM ADMIN PANEL
#=================================================
if sudo yunohost service status | grep -q $app
if yunohost service status | grep -q $app
then
echo "Remove $app service"
sudo yunohost service remove $app
yunohost service remove $app
fi
#=================================================
@@ -84,10 +84,10 @@ ynh_remove_logrotate
# CLOSE A PORT
#=================================================
if sudo yunohost firewall list | grep -q "\- $port$"
if yunohost firewall list | grep -q "\- $port$"
then
echo "Close port $port"
QUIET sudo yunohost firewall disallow TCP $port
QUIET yunohost firewall disallow TCP $port
fi
#=================================================