Compare commits

..

2 Commits

Author SHA1 Message Date
Thorsten
98ab0ced7a
smaller fixes 2025-01-20 08:28:28 +01:00
Thorsten
50791bca06
Apply suggestions from code review
I'll merge it, but this text string are 1:1 copy from the post-pbs-install.sh script. Maybe we should also fix them there.

Co-authored-by: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com>
2025-01-20 08:18:47 +01:00
2 changed files with 35 additions and 36 deletions

View File

@ -2,9 +2,9 @@
"name": "Proxmox Mail Gateway Post Install", "name": "Proxmox Mail Gateway Post Install",
"slug": "post-pmg-install", "slug": "post-pmg-install",
"categories": [ "categories": [
1 1
], ],
"date_created": "2025-01-17", "date_created": "2025-01-20",
"type": "misc", "type": "misc",
"updateable": false, "updateable": false,
"privileged": false, "privileged": false,
@ -14,34 +14,34 @@
"logo": "https://raw.githubusercontent.com/home-assistant/brands/master/core_integrations/proxmoxve/icon.png", "logo": "https://raw.githubusercontent.com/home-assistant/brands/master/core_integrations/proxmoxve/icon.png",
"description": "The script will give options to Disable the Enterprise Repo, Add/Correct PMG Sources, Enable the No-Subscription Repo, Add Test Repo, Disable Subscription Nag, Update Proxmox Mail Gateway and Reboot PMG.", "description": "The script will give options to Disable the Enterprise Repo, Add/Correct PMG Sources, Enable the No-Subscription Repo, Add Test Repo, Disable Subscription Nag, Update Proxmox Mail Gateway and Reboot PMG.",
"install_methods": [ "install_methods": [
{ {
"type": "default", "type": "default",
"script": "misc/post-pmg-install.sh", "script": "misc/post-pmg-install.sh",
"resources": { "resources": {
"cpu": null, "cpu": null,
"ram": null, "ram": null,
"hdd": null, "hdd": null,
"os": null, "os": null,
"version": null "version": null
} }
} }
], ],
"default_credentials": { "default_credentials": {
"username": null, "username": null,
"password": null "password": null
}, },
"notes": [ "notes": [
{ {
"text": "Proxmox Mail Gateway ONLY", "text": "Proxmox Mail Gateway ONLY",
"type": "info" "type": "info"
}, },
{ {
"text": "Execute within the Proxmox Mail Gateway Shell", "text": "Execute within the Proxmox Mail Gateway Shell",
"type": "info" "type": "info"
}, },
{ {
"text": "It is recommended to answer “yes” (y) to all options presented during the process.", "text": "It is recommended to answer “yes” (y) to all options presented during the process.",
"type": "info" "type": "info"
} }
] ]
} }

View File

@ -1,9 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) 2021-2025 tteck | community-scripts ORG # Copyright (c) 2021-2025 community-scripts ORG
# Author: thost96 (thost96) # Author: thost96 (thost96)
# License: MIT # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
header_info() { header_info() {
clear clear
@ -76,7 +75,7 @@ EOF
msg_ok "Disabled 'pmg-enterprise' repository" msg_ok "Disabled 'pmg-enterprise' repository"
;; ;;
no) no)
msg_error "Selected no to Disabling 'pmg-enterprise' repository" msg_error "Selected no to disabling 'pmg-enterprise' repository"
;; ;;
esac esac
@ -92,7 +91,7 @@ EOF
msg_ok "Enabled 'pmg-no-subscription' repository" msg_ok "Enabled 'pmg-no-subscription' repository"
;; ;;
no) no)
msg_error "Selected no to Enabling 'pmg-no-subscription' repository" msg_error "Selected no to enabling 'pmg-no-subscription' repository"
;; ;;
esac esac
@ -108,7 +107,7 @@ EOF
msg_ok "Added 'pmgtest' repository" msg_ok "Added 'pmgtest' repository"
;; ;;
no) no)
msg_error "Selected no to Adding 'pmgtest' repository" msg_error "Selected no to adding 'pmgtest' repository"
;; ;;
esac esac
@ -126,7 +125,7 @@ EOF
;; ;;
no) no)
whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox --title "Support Subscriptions" "Supporting the software's development team is essential. Check their official website's Support Subscriptions for pricing. Without their dedicated work, we wouldn't have this exceptional software." 10 58 whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox --title "Support Subscriptions" "Supporting the software's development team is essential. Check their official website's Support Subscriptions for pricing. Without their dedicated work, we wouldn't have this exceptional software." 10 58
msg_error "Selected no to Disabling subscription nag" msg_error "Selected no to disabling subscription nag"
;; ;;
esac esac
fi fi
@ -142,7 +141,7 @@ EOF
msg_ok "Updated Proxmox Mail Gateway" msg_ok "Updated Proxmox Mail Gateway"
;; ;;
no) no)
msg_error "Selected no to Updating Proxmox Mail Gateway" msg_error "Selected no to updating Proxmox Mail Gateway"
;; ;;
esac esac
@ -157,7 +156,7 @@ EOF
reboot reboot
;; ;;
no) no)
msg_error "Selected no to Rebooting Proxmox Mail Gateway (Reboot recommended)" msg_error "Selected no to reboot Proxmox Mail Gateway (Reboot recommended)"
msg_ok "Completed Post Install Routines" msg_ok "Completed Post Install Routines"
;; ;;
esac esac