You disappoint me, mr systemd
This commit is contained in:
@@ -5,3 +5,6 @@ After=ynh-vpnclient.service
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/local/bin/ynh-vpnclient-checker.sh
|
ExecStart=/usr/local/bin/ynh-vpnclient-checker.sh
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
|
|||||||
@@ -131,6 +131,8 @@ sudo systemctl reload nginx
|
|||||||
sudo systemctl enable ynh-vpnclient
|
sudo systemctl enable ynh-vpnclient
|
||||||
sudo yunohost service add ynh-vpnclient
|
sudo yunohost service add ynh-vpnclient
|
||||||
|
|
||||||
|
sudo systemctl start ynh-vpnclient-checker.service
|
||||||
|
sudo systemctl enable ynh-vpnclient-checker.service
|
||||||
sudo systemctl start ynh-vpnclient-checker.timer
|
sudo systemctl start ynh-vpnclient-checker.timer
|
||||||
sudo systemctl enable ynh-vpnclient-checker.timer
|
sudo systemctl enable ynh-vpnclient-checker.timer
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,8 @@
|
|||||||
domain=$(sudo yunohost app setting vpnclient domain)
|
domain=$(sudo yunohost app setting vpnclient domain)
|
||||||
|
|
||||||
# The End
|
# The End
|
||||||
|
sudo systemctl stop ynh-vpnclient-checker.service
|
||||||
|
sudo systemctl disable ynh-vpnclient-checker.service
|
||||||
sudo systemctl stop ynh-vpnclient-checker.timer && sleep 1
|
sudo systemctl stop ynh-vpnclient-checker.timer && sleep 1
|
||||||
sudo systemctl disable ynh-vpnclient-checker.timer
|
sudo systemctl disable ynh-vpnclient-checker.timer
|
||||||
sudo systemctl stop ynh-vpnclient
|
sudo systemctl stop ynh-vpnclient
|
||||||
|
|||||||
@@ -29,9 +29,9 @@ export VPNCLIENT_UPGRADE=1
|
|||||||
sudo bash /etc/yunohost/apps/vpnclient/scripts/remove &> /dev/null
|
sudo bash /etc/yunohost/apps/vpnclient/scripts/remove &> /dev/null
|
||||||
bash ./install "${domain}" "${path}" "${server_name}"
|
bash ./install "${domain}" "${path}" "${server_name}"
|
||||||
|
|
||||||
|
sudo rmdir /etc/openvpn/keys/
|
||||||
|
sudo cp -a "${rollbackdir}/keys/" /etc/openvpn/keys/
|
||||||
sudo cp -a "${rollbackdir}/settings.yml" /etc/yunohost/apps/vpnclient/
|
sudo cp -a "${rollbackdir}/settings.yml" /etc/yunohost/apps/vpnclient/
|
||||||
sudo cp -a ${rollbackdir}/keys/* /etc/openvpn/keys/
|
|
||||||
ls /tmp/*
|
|
||||||
sudo cp -a "${rollbackdir}/client.conf.tpl" /etc/openvpn/ 2> /dev/null
|
sudo cp -a "${rollbackdir}/client.conf.tpl" /etc/openvpn/ 2> /dev/null
|
||||||
|
|
||||||
# Changes
|
# Changes
|
||||||
|
|||||||
Reference in New Issue
Block a user