diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-06-26 23:37:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-26 23:37:43 +0200 |
commit | efcce444dbc01bd310c2e19e87e5f0bdc4031a17 (patch) | |
tree | 686d88fb448bae385493939cc04c1bdad1e9096f /debian | |
parent | 707fe801eac4a878f433bec4cc147547ef035fb1 (diff) | |
download | vyos-1x-efcce444dbc01bd310c2e19e87e5f0bdc4031a17.tar.gz vyos-1x-efcce444dbc01bd310c2e19e87e5f0bdc4031a17.zip |
Debian: ensure path for vyos-postconfig-bootup.script exists
Diffstat (limited to 'debian')
-rw-r--r-- | debian/vyos-1x.postinst | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/debian/vyos-1x.postinst b/debian/vyos-1x.postinst index f191feb3a..2d7411061 100644 --- a/debian/vyos-1x.postinst +++ b/debian/vyos-1x.postinst @@ -72,11 +72,12 @@ for init in openswan ipsec setkey; do done # create /opt/vyatta/etc/config/scripts/vyos-postconfig-bootup.script -# this should be after 'mkdir -p /opt/vyatta/etc/config/scripts' above -if [ ! -x /opt/vyatta/etc/config/scripts/vyos-postconfig-bootup.script ]; then - touch /opt/vyatta/etc/config/scripts/vyos-postconfig-bootup.script - chmod 755 /opt/vyatta/etc/config/scripts/vyos-postconfig-bootup.script - cat <<EOF >>/opt/vyatta/etc/config/scripts/vyos-postconfig-bootup.script +POSTCONFIG_SCRIPT=/opt/vyatta/etc/config/scripts/vyos-postconfig-bootup.script +if [ ! -x $POSTCONFIG_SCRIPT ]; then + mkdir -p $(dirname $POSTCONFIG_SCRIPT) + touch $POSTCONFIG_SCRIPT + chmod 755 $POSTCONFIG_SCRIPT + cat <<EOF >>$POSTCONFIG_SCRIPT #!/bin/sh # This script is executed at boot time after VyOS configuration is fully applied. # Any modifications required to work around unfixed bugs |