123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #!/bin/bash
- source ../settings/scripts/_common.sh
- source /usr/share/yunohost/helpers
- ynh_print_info "Restoring the app files..."
- ynh_restore
- ynh_print_info "Restoring the systemd configuration..."
- systemctl daemon-reload
- systemctl disable openvpn --quiet
- systemctl stop openvpn
- yunohost service add $service_name --description "Tunnels the internet traffic through a VPN" --need_lock --test_status="systemctl is-active openvpn@client.service" --log "/var/log/ynh-vpnclient.log"
- yunohost service enable "$service_name"
- systemctl start "$service_checker_name"
- systemctl enable "$service_checker_name" --quiet
- systemctl start "$service_checker_name.timer"
- systemctl enable "$service_checker_name.timer" --quiet
- ynh_print_info "Restoration completed for $app"
|