forked from sig_core/kickstarts
add additional comment to avoid overwrites
This commit is contained in:
parent
1be3dbad2c
commit
fa6307c427
@ -199,6 +199,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -218,6 +218,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -116,6 +116,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -135,6 +135,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -180,6 +180,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -197,6 +197,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -133,6 +133,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -166,6 +166,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -166,6 +166,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -80,6 +80,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -80,6 +80,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -83,6 +83,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -83,6 +83,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
@ -80,6 +80,7 @@ EOL
|
|||||||
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
|
||||||
|
|
||||||
# rocky cloud user
|
# rocky cloud user
|
||||||
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user