mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 19:10:10 +00:00
Correct SELinux context for firstboot
This permits the script to actually run at firstboot, even if SELinux is on.
This commit is contained in:
parent
008bf33be3
commit
4d5ec98525
@ -26,15 +26,12 @@ curl -f https://$mgr/confluent-public/os/$profile/scripts/post.sh > /tmp/postins
|
||||
|
||||
# Hook firstboot.sh
|
||||
curl -f https://$mgr/confluent-public/os/$profile/scripts/firstboot.service > /mnt/sysimage/etc/systemd/system/firstboot.service
|
||||
curl -f https://$mgr/confluent-public/os/$profile/scripts/firstboot.sh > /mnt/sysimage/etc/confuent/firstboot.sh
|
||||
curl -f https://$mgr/confluent-public/os/$profile/scripts/firstboot.sh > /mnt/sysimage/etc/confluent/firstboot.sh
|
||||
chmod +x /mnt/sysimage/etc/confluent/firstboot.sh
|
||||
|
||||
chmod 664 /etc/systemd/system/runonce.service
|
||||
systemctl enable runonce
|
||||
%end
|
||||
|
||||
%post
|
||||
systemctl enable firstboot
|
||||
chgrp ssh_keys /etc/ssh/ssh*key
|
||||
restorecon /etc/ssh/ssh*key /root/.shosts /etc/ssh/shosts.equiv /etc/ssh/ssh_config.d/*
|
||||
restorecon /etc/ssh/ssh*key /root/.shosts /etc/ssh/shosts.equiv /etc/ssh/ssh_config.d/* /etc/confluent/firstboot.sh
|
||||
%end
|
||||
|
Loading…
Reference in New Issue
Block a user