Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
jakerundall committed Dec 6, 2023
1 parent a21c4bd commit 061a347
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions manifests/quota.pp
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,21 @@
owner => 'root',
}

$bash_file="/etc/profile.d/${file_prefix}_quota.sh"
$csh_file="/etc/profile.d/${file_prefix}_quota.csh"

if $command_paths.empty {
# no quota scripts to run, remove run-scripts
## Bash-like shells
file { "/etc/profile.d/${file_prefix}_quota.sh":
file { $bash_file:
ensure => absent,
}
## csh-like shells
## ...
} else {
# quota script(s) listed, manage run-scripts
## Bash-like shells
file { "/etc/profile.d/${file_prefix}_quota.sh":
file { $bash_file:
ensure => file,
content => epp( 'profile_user_environment/quota.sh.epp' ),
}
Expand Down

0 comments on commit 061a347

Please sign in to comment.