No need to sudo all over the place

This commit is contained in:
Alexandre Aubin
2018-12-03 01:04:24 +01:00
committed by pitchum
parent fe159638f5
commit ed60b7782a
6 changed files with 79 additions and 79 deletions

View File

@@ -78,20 +78,20 @@ vpnclient_deploy_files_and_services "${domain}" "${app}"
# Set default inits
# The boot order of these services are important, so they are disabled by default
# and the ynh-vpnclient service handles them.
sudo systemctl disable openvpn
sudo systemctl stop openvpn
systemctl disable openvpn
systemctl stop openvpn
sudo systemctl enable php5-fpm
sudo systemctl restart php5-fpm
systemctl enable php5-fpm
systemctl restart php5-fpm
sudo systemctl reload nginx
systemctl reload nginx
sudo systemctl enable ynh-vpnclient
sudo yunohost service add ynh-vpnclient
systemctl enable ynh-vpnclient
yunohost service add ynh-vpnclient
ynh_systemctl start ynh-vpnclient-checker.service
sudo systemctl enable ynh-vpnclient-checker.service
systemctl enable ynh-vpnclient-checker.service
ynh_systemctl start ynh-vpnclient-checker.timer
sudo systemctl enable ynh-vpnclient-checker.timer
systemctl enable ynh-vpnclient-checker.timer
sudo yunohost app ssowatconf
yunohost app ssowatconf