diff --git a/Makefile b/Makefile index e0bc649..78b6515 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ PKG_NAME=oci-cn-auth PKG_DESCRIPTION="OCI cluster network authentication tool" PKG_VERSION=0.2.12 -PKG_RELEASE=0 +PKG_RELEASE=1 PKG_MAINTAINER="Marcin Zablocki \" PKG_ARCH=all PKG_ARCH_RPM=noarch diff --git a/scripts/before-install.sh b/scripts/before-install.sh index 54bb7d1..f5ab43b 100644 --- a/scripts/before-install.sh +++ b/scripts/before-install.sh @@ -2,7 +2,7 @@ # increase network service timeout to 15 minutes mkdir -p /etc/systemd/system/network.service.d/ -cat << EOF >> /etc/systemd/system/network.service.d/override.conf +cat <> /etc/systemd/system/network.service.d/override.conf [Service] Type=forking Restart=no diff --git a/scripts/before-upgrade.sh b/scripts/before-upgrade.sh index 562fa4b..f5c8e05 100644 --- a/scripts/before-upgrade.sh +++ b/scripts/before-upgrade.sh @@ -1,3 +1,12 @@ -#systemctl=$(which systemctl) -#${systemctl} stop oci-cn-auth.service -#${systemctl} stop oci-cn-auth.timer \ No newline at end of file +if [ ! -f /etc/systemd/system/network.service.d/override.conf ] ; then +mkdir -p /etc/systemd/system/network.service.d/ +cat <> /etc/systemd/system/network.service.d/override.conf +[Service] +Type=forking +Restart=no +TimeoutSec=15min +EOF +fi + +systemctl=$(which systemctl) +${systemctl} daemon-reload