Update create.sh
This commit is contained in:
parent
3a5204d400
commit
5d464d2a53
1 changed files with 4 additions and 0 deletions
|
|
@ -123,8 +123,10 @@ DISKTYPE=$(pvesm status | awk -v storage="$STORAGE" 'NR>1 && $1 == storage {prin
|
||||||
# Pas de image aan
|
# Pas de image aan
|
||||||
case $OSKEUZE in
|
case $OSKEUZE in
|
||||||
1|2|3|4) # Debian en Ubuntu
|
1|2|3|4) # Debian en Ubuntu
|
||||||
|
virt-customize --run-command "apt update -y" -a /tmp/"$IMAGE_NAME"
|
||||||
virt-customize --install qemu-guest-agent,htop,curl,avahi-daemon,console-setup,cron,cifs-utils,mtr,bash-completion,bind9-utils,lsof,mc,mlocate,screen,sysstat,tmux,wget,zabbix-agent -a /tmp/"$IMAGE_NAME"
|
virt-customize --install qemu-guest-agent,htop,curl,avahi-daemon,console-setup,cron,cifs-utils,mtr,bash-completion,bind9-utils,lsof,mc,mlocate,screen,sysstat,tmux,wget,zabbix-agent -a /tmp/"$IMAGE_NAME"
|
||||||
virt-customize --run-command "systemctl enable --now qemu-guest-agent" -a /tmp/"$IMAGE_NAME"
|
virt-customize --run-command "systemctl enable --now qemu-guest-agent" -a /tmp/"$IMAGE_NAME"
|
||||||
|
virt-customize --run-command "apt upgrade -y" -a /tmp/"$IMAGE_NAME"
|
||||||
|
|
||||||
case $SSH_KEYS_PATH in
|
case $SSH_KEYS_PATH in
|
||||||
'') # leeg
|
'') # leeg
|
||||||
|
|
@ -141,10 +143,12 @@ case $OSKEUZE in
|
||||||
;;
|
;;
|
||||||
5) # RHEL
|
5) # RHEL
|
||||||
virt-customize --install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -a /tmp/"$IMAGE_NAME"
|
virt-customize --install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -a /tmp/"$IMAGE_NAME"
|
||||||
|
virt-customize --run-command "dnf update -y" -a /tmp/"$IMAGE_NAME"
|
||||||
virt-customize --install qemu-guest-agent,htop,curl,cifs-utils,firewalld,mtr,bash-completion,bind-utils,lsof,mc,mlocate,perl,perl-Date-Calc,perl-Data-Dumper,perl-Getopt-Long,perl-libs,screen,sysstat,tmux,wget,zabbix-agent -a /tmp/"$IMAGE_NAME"
|
virt-customize --install qemu-guest-agent,htop,curl,cifs-utils,firewalld,mtr,bash-completion,bind-utils,lsof,mc,mlocate,perl,perl-Date-Calc,perl-Data-Dumper,perl-Getopt-Long,perl-libs,screen,sysstat,tmux,wget,zabbix-agent -a /tmp/"$IMAGE_NAME"
|
||||||
virt-customize --selinux-relabel -a /tmp/"$IMAGE_NAME"
|
virt-customize --selinux-relabel -a /tmp/"$IMAGE_NAME"
|
||||||
virt-customize --run-command "systemctl enable --now firewalld" -a /tmp/"$IMAGE_NAME"
|
virt-customize --run-command "systemctl enable --now firewalld" -a /tmp/"$IMAGE_NAME"
|
||||||
virt-customize --run-command "systemctl enable --now qemu-guest-agent" -a /tmp/"$IMAGE_NAME"
|
virt-customize --run-command "systemctl enable --now qemu-guest-agent" -a /tmp/"$IMAGE_NAME"
|
||||||
|
virt-customize --run-command "dnf update -y" -a /tmp/"$IMAGE_NAME"
|
||||||
|
|
||||||
case $SSH_KEYS_PATH in
|
case $SSH_KEYS_PATH in
|
||||||
'') # leeg
|
'') # leeg
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue