diff options
author | Daniil Baturin <daniil@vyos.io> | 2023-10-03 10:21:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-03 10:21:32 +0100 |
commit | 5dc9681ac2792520bb9722e0d44a972578264013 (patch) | |
tree | 9bdc05854cbcc509d5cde7566623797c044d9ed9 /src | |
parent | 18e184f104a41f0ff1fb4e3dd9f51c34b5a8df1d (diff) | |
parent | 4bbbca984f9067359378cbe1430a05a37945c1d3 (diff) | |
download | vyos-1x-5dc9681ac2792520bb9722e0d44a972578264013.tar.gz vyos-1x-5dc9681ac2792520bb9722e0d44a972578264013.zip |
Merge pull request #2332 from vyos/mergify/bp/sagitta/pr-2326
T5436: Add missing preconfig-script (backport #2326)
Diffstat (limited to 'src')
-rwxr-xr-x | src/init/vyos-router | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/init/vyos-router b/src/init/vyos-router index b8833a8a0..1e1fdeddc 100755 --- a/src/init/vyos-router +++ b/src/init/vyos-router @@ -105,6 +105,9 @@ load_bootfile () restore_if_missing_preconfig_script () { if [ ! -x ${vyatta_sysconfdir}/config/scripts/vyos-preconfig-bootup.script ]; then + mkdir -p ${vyatta_sysconfdir}/config/scripts + chgrp ${GROUP} ${vyatta_sysconfdir}/config/scripts + chmod 775 ${vyatta_sysconfdir}/config/scripts cp ${vyos_rootfs_dir}/opt/vyatta/etc/config/scripts/vyos-preconfig-bootup.script ${vyatta_sysconfdir}/config/scripts/ chgrp ${GROUP} ${vyatta_sysconfdir}/config/scripts/vyos-preconfig-bootup.script chmod 750 ${vyatta_sysconfdir}/config/scripts/vyos-preconfig-bootup.script @@ -123,6 +126,9 @@ run_preconfig_script () restore_if_missing_postconfig_script () { if [ ! -x ${vyatta_sysconfdir}/config/scripts/vyos-postconfig-bootup.script ]; then + mkdir -p ${vyatta_sysconfdir}/config/scripts + chgrp ${GROUP} ${vyatta_sysconfdir}/config/scripts + chmod 775 ${vyatta_sysconfdir}/config/scripts cp ${vyos_rootfs_dir}/opt/vyatta/etc/config/scripts/vyos-postconfig-bootup.script ${vyatta_sysconfdir}/config/scripts/ chgrp ${GROUP} ${vyatta_sysconfdir}/config/scripts/vyos-postconfig-bootup.script chmod 750 ${vyatta_sysconfdir}/config/scripts/vyos-postconfig-bootup.script |