Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added interactive mode, made quota optional #39

Merged
merged 4 commits into from
Nov 16, 2023

Conversation

mpanighetti
Copy link
Collaborator

@mpanighetti mpanighetti commented Oct 24, 2023

  • script now checks each Jamf Pro script parameter individually and prompts user for selection if missing
    • removed check_jamf_pro_arguments()
  • added check_startup_container_size() (verifies container size is readable before proceeding, then converts byte value to GB)
  • added $newVolumeQuotaPercent
    • script picks the larger valid value of $newVolumeQuotaGB or $newVolumeQuotaPercent
  • added $removeQuota flag (supersedes quota GB or percentage if defined)
    • quota is also removed if quota GB exceeds disk capacity or if quota percentage is 100
  • moved file system personality check to check_file_system_personality()
  • removed $startupDiskName and check_startup_disk() (now detects startup volume name programmatically)
  • removed $sizeSuffix (since it was standardized on GB anyway)
  • removed $volumeIdentifier (unused since this script was split from encryption workflows)
  • converted to POSIX Shell
  • renamed script to clarify functionality

- converted to POSIX Shell
- moved initial variables to script body to follow prerequisite functions (prevents stderr messages ahead of these checks)
- moved check_volume ahead of check_startup_disk
- removed $sizeSuffix (since it was standardized on GB anyway)
- removed $volumeIdentifier (unused since this script was split from encryption workflows)
- made quota optional (if undefined, new volume shares all available container space with startup disk)
- script now checks each Jamf Pro script parameter individually and prompts user for selection if missing
  - removed check_jamf_pro_arguments
  - newVolumeQuota defaults to "none" (share all container space) if undefined
- removed startupDiskName and check_startup_disk (now detects startup volume name programmatically)
- moved file system personality check to function
- renamed script to clarify functionality
- major version change (guess it's finally time)
@mpanighetti mpanighetti added enhancement New feature or request merge when ready labels Oct 24, 2023
- added quota percentage option
  - if both percentage and GB are defined, the larger value is selected
- added quota removal flag (supersedes quota GB and quota percentage)
  - quota is also removed if quota GB exceeds disk capacity or if quota percentage is 100
- added check_startup_container_size() (verifies container size is readable before proceeding, then converts byte value to GB)
@mpanighetti mpanighetti merged commit eae8441 into main Nov 16, 2023
1 check passed
@mpanighetti mpanighetti deleted the optionally-remove-quota branch November 16, 2023 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request merge when ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant