* Fri Aug 29 2025 Jean-Philippe Pialasse <jpp@koozali.org> 0.1.6-9.sme
- fix service unit permission issues [SME: 12258]
This commit is contained in:
@@ -24,7 +24,12 @@ if [[ ! -f /etc/openvpn/routed/pub/cacrl.pem && -f /etc/openvpn/bridge/pub/cacrl
|
|||||||
/sbin/e-smith/expand-template /etc/openvpn/routed/openvpn.conf
|
/sbin/e-smith/expand-template /etc/openvpn/routed/openvpn.conf
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
chmod 0600 /etc/openvpn/routed/priv/*
|
|
||||||
chmod 0644 /etc/openvpn/routed/pub/*
|
if [ ! -z "$( ls -A '/etc/openvpn/routed/priv/' )" ]; then
|
||||||
chown root:admin /etc/openvpn/routed/priv/*
|
chmod 0600 /etc/openvpn/routed/priv/*
|
||||||
chown root:admin /etc/openvpn/routed/pub/*
|
chown root:admin /etc/openvpn/routed/priv/*
|
||||||
|
fi
|
||||||
|
if [ ! -z "$( ls -A '/etc/openvpn/routed/pub/' )" ]; then
|
||||||
|
chmod 0644 /etc/openvpn/routed/pub/*
|
||||||
|
chown root:admin /etc/openvpn/routed/pub/*
|
||||||
|
fi
|
||||||
|
@@ -1,11 +1,17 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=OpenVPN Server routed for Roadwariors
|
Description=OpenVPN Server routed for Roadwariors
|
||||||
After=network.service
|
After=network.service
|
||||||
|
ConditionPathExists=/etc/openvpn/routed/priv/key.pem
|
||||||
|
ConditionPathExists=/etc/openvpn/routed/pub/cert.pem
|
||||||
|
ConditionPathExists=/etc/openvpn/routed/pub/cacert.pem
|
||||||
|
ConditionPathExists=/etc/openvpn/routed/pub/dh.pem
|
||||||
|
# /etc/openvpn/routed/priv/takey.pem is optional
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=notify
|
Type=notify
|
||||||
PrivateTmp=true
|
PrivateTmp=true
|
||||||
WorkingDirectory=/etc/openvpn/routed
|
WorkingDirectory=/etc/openvpn/routed
|
||||||
|
PermissionsStartOnly=true
|
||||||
|
|
||||||
ExecStartPre=-/sbin/e-smith/service-status 'openvpn-routed'
|
ExecStartPre=-/sbin/e-smith/service-status 'openvpn-routed'
|
||||||
ExecStartPre=-/sbin/e-smith/systemd/openvpn-routed
|
ExecStartPre=-/sbin/e-smith/systemd/openvpn-routed
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
Summary: OpenVPN, a strong VPN solution build over SSL, pre-configured for routed mode
|
Summary: OpenVPN, a strong VPN solution build over SSL, pre-configured for routed mode
|
||||||
Name: smeserver-openvpn-routed
|
Name: smeserver-openvpn-routed
|
||||||
%define version 0.1.6
|
%define version 0.1.6
|
||||||
%define release 8
|
%define release 9
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}%{?dist}
|
Release: %{release}%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
@@ -26,6 +26,9 @@ to have a full working openvpn server running in routed mode.
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 29 2025 Jean-Philippe Pialasse <jpp@koozali.org> 0.1.6-9.sme
|
||||||
|
- fix service unit permission issues [SME: 12258]
|
||||||
|
|
||||||
* Thu Mar 06 2025 cvs2git.sh aka Brian Read <brianr@koozali.org> 0.1.6-8.sme
|
* Thu Mar 06 2025 cvs2git.sh aka Brian Read <brianr@koozali.org> 0.1.6-8.sme
|
||||||
- Roll up patches and move to git repo [SME: 12338]
|
- Roll up patches and move to git repo [SME: 12338]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user