systemd: migrate the SySv init script to a simple bash script

This commit is contained in:
Sebastien Badia
2015-05-13 01:26:14 +02:00
parent 810ec32947
commit 52254fad0e
3 changed files with 3 additions and 2 deletions

View File

@@ -162,7 +162,8 @@ sudo sed 's|<TPL:NGINX_REALPATH>|/var/www/vpnadmin/|g' -i /etc/php5/fpm/pool.d/v
sudo sed "s|<TPL:NGINX_LOCATION>|${url_path}|g" -i /var/www/vpnadmin/config.php
# Copy init script
sudo install -o root -g root -m 0755 ../conf/init_ynh-vpnclient /etc/init.d/ynh-vpnclient
sudo install -o root -g root -m 0755 ../conf/ynh-vpnclient /usr/local/bin/
sudo install -o root -g root -m 0755 ../conf/ynh-vpnclient.service /lib/systemd/system/ynh-vpnclient.service
# Set default inits
# The openvpn configuration is modified before the start, so the service is disabled by default