mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-28 02:18:50 +00:00
Fix RPM dependencies
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if [ "$1" = purge ]; then
|
||||
echo "Refusing to purge /etc/firezone/secret and drop database. This must be done manually."
|
||||
echo "If you really want to do this, run the following as root:"
|
||||
echo " su postgres -c 'psql -c \"DROP DATABASE firezone;\"'"
|
||||
echo " rm -rf /etc/firezone/secret"
|
||||
fi
|
||||
# Call the post removal script
|
||||
. /usr/lib/firezone/bin/postrm.sh
|
||||
|
||||
@@ -11,6 +11,7 @@ Requires: postgresql-server >= 9.6
|
||||
Requires: openssl
|
||||
Requires: systemd
|
||||
Requires: iptables
|
||||
Requires: glibc
|
||||
|
||||
%description
|
||||
Provides a web-based UI that allows you to configure WireGuard™ VPN tunnels and
|
||||
@@ -19,6 +20,9 @@ set up firewall rules for your devices.
|
||||
%post
|
||||
/usr/lib/firezone/bin/postinst.sh
|
||||
|
||||
%postun
|
||||
/usr/lib/firezone/bin/postrm.sh
|
||||
|
||||
%files
|
||||
%config /etc/firezone
|
||||
/lib/systemd/system/firezone.service
|
||||
|
||||
9
pkg/skel/usr/lib/firezone/bin/postrm.sh
Executable file
9
pkg/skel/usr/lib/firezone/bin/postrm.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if [ "$1" = purge ]; then
|
||||
echo "Refusing to purge /etc/firezone/secret and drop database. This must be done manually."
|
||||
echo "If you really want to do this, run the following as root:"
|
||||
echo " su postgres -c 'psql -c \"DROP DATABASE firezone;\"'"
|
||||
echo " rm -rf /etc/firezone/secret"
|
||||
fi
|
||||
Reference in New Issue
Block a user