Fix RPM dependencies

This commit is contained in:
Jamil Bou Kheir
2021-07-26 09:35:36 -07:00
parent 9875717adc
commit f90b48bd2d
3 changed files with 15 additions and 6 deletions

View File

@@ -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

View File

@@ -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

View 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