Skip to content

Commit

Permalink
fix(installer): Added missing named files in generic installers [back…
Browse files Browse the repository at this point in the history
…port release-5.3.0] (#4621)

fix(installer): Added missing named files in generic installers (#4618)

Added missing named files in generic installers

Signed-off-by: pierantoniomerlino <[email protected]>
(cherry picked from commit 00b1d5f)

Co-authored-by: Pierantonio Merlino <[email protected]>
  • Loading branch information
github-actions[bot] and pierantoniomerlino authored Apr 28, 2023
1 parent 68d788f commit f221cb1
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
12 changes: 12 additions & 0 deletions kura/distrib/src/main/resources/generic-aarch64/kura_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,18 @@ if command -v timedatectl > /dev/null ;
timedatectl set-ntp false
fi

#set up bind/named
mkdir -p /var/named
chown -R bind /var/named
cp ${INSTALL_DIR}/kura/install/named.ca /var/named/
cp ${INSTALL_DIR}/kura/install/named.rfc1912.zones /etc/
cp ${INSTALL_DIR}/kura/install/usr.sbin.named /etc/apparmor.d/
if [ ! -f "/etc/bind/rndc.key" ] ; then
rndc-confgen -r /dev/urandom -a
fi
chown bind:bind /etc/bind/rndc.key
chmod 600 /etc/bind/rndc.key

# set up logrotate - no need to restart as it is a cronjob
cp ${INSTALL_DIR}/kura/install/kura.logrotate /etc/logrotate-kura.conf

Expand Down
12 changes: 12 additions & 0 deletions kura/distrib/src/main/resources/generic-arm32/kura_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,18 @@ if command -v timedatectl > /dev/null ;
timedatectl set-ntp false
fi

#set up bind/named
mkdir -p /var/named
chown -R bind /var/named
cp ${INSTALL_DIR}/kura/install/named.ca /var/named/
cp ${INSTALL_DIR}/kura/install/named.rfc1912.zones /etc/
cp ${INSTALL_DIR}/kura/install/usr.sbin.named /etc/apparmor.d/
if [ ! -f "/etc/bind/rndc.key" ] ; then
rndc-confgen -r /dev/urandom -a
fi
chown bind:bind /etc/bind/rndc.key
chmod 600 /etc/bind/rndc.key

# set up logrotate - no need to restart as it is a cronjob
cp ${INSTALL_DIR}/kura/install/kura.logrotate /etc/logrotate-kura.conf

Expand Down
12 changes: 12 additions & 0 deletions kura/distrib/src/main/resources/generic-x86_64/kura_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,18 @@ if command -v timedatectl > /dev/null ;
timedatectl set-ntp false
fi

#set up bind/named
mkdir -p /var/named
chown -R bind /var/named
cp ${INSTALL_DIR}/kura/install/named.ca /var/named/
cp ${INSTALL_DIR}/kura/install/named.rfc1912.zones /etc/
cp ${INSTALL_DIR}/kura/install/usr.sbin.named /etc/apparmor.d/
if [ ! -f "/etc/bind/rndc.key" ] ; then
rndc-confgen -r /dev/urandom -a
fi
chown bind:bind /etc/bind/rndc.key
chmod 600 /etc/bind/rndc.key

# set up logrotate - no need to restart as it is a cronjob
cp ${INSTALL_DIR}/kura/install/kura.logrotate /etc/logrotate-kura.conf

Expand Down

0 comments on commit f221cb1

Please sign in to comment.