diff options
Diffstat (limited to 'rapid-tunneling.spec')
-rw-r--r-- | rapid-tunneling.spec | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/rapid-tunneling.spec b/rapid-tunneling.spec index 94d380f..5ed12cb 100644 --- a/rapid-tunneling.spec +++ b/rapid-tunneling.spec @@ -10,8 +10,6 @@ Requires: openssh-clients busybox gnupg BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root -%define webroot /var/www/html/support - %description RapidTunneling (tm) allows remote access to machines behind firewalls and NAT routers via SSH port forwarding. @@ -92,9 +90,9 @@ TEXT="Defaults>$user !lecture $user ALL=(rapid-tunneling) NOPASSWD:/usr/sbin/rapid-tunneling $user ALL=(rapid-tunneling) NOPASSWD:/usr/sbin/rapid-tunneling-status" if ! fgrep -q "$TEXT" $SUDOERS; then echo "$TEXT" >> $SUDOERS; fi -# FIXME: reload apache +service httpd reload -%preun gui +%postun gui if [ "$1" = 0 ]; then SUDOERS=/etc/sudoers user="asterisk" @@ -103,6 +101,7 @@ $user ALL=(rapid-tunneling) NOPASSWD:/usr/sbin/rapid-tunneling $user ALL=(rapid-tunneling) NOPASSWD:/usr/sbin/rapid-tunneling-status" fgrep -v "$TEXT" $SUDOERS > ${SUDOERS}.tmp && cp ${SUDOERS}.tmp $SUDOERS && rm ${SUDOERS}.tmp fi +service httpd reload %files %defattr(-, root, root, 0755) @@ -124,7 +123,7 @@ fi %files gui %defattr(-, root, root, 0755) -%{webroot}/ +%{_datadir}/rapid-tunneling/www %config(noreplace) /etc/rapid-tunneling/gui.htpasswd %config /etc/httpd/conf.d/rapid-tunneling.conf |