Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rabbitmq_agents
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Wiki
Code
Merge requests
8
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rc
rabbitmq_agents
Commits
cb74b5b5
Commit
cb74b5b5
authored
3 weeks ago
by
Dylan Wheeler
Browse files
Options
Downloads
Patches
Plain Diff
feat: remove unnecessary variable and update script to check for any flag/input
parent
949278ca
No related branches found
Branches containing commit
No related tags found
1 merge request
!158
FEAT: introduce shell script to allow user to disable another users crontab...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/crondisable.sh
+4
-6
4 additions, 6 deletions
scripts/crondisable.sh
with
4 additions
and
6 deletions
scripts/crondisable.sh
+
4
−
6
View file @
cb74b5b5
#!/bin/bash
username
=
"
$1
"
usage
()
{
echo
"Usage:
$0
-d USERNAME to disable a user"
echo
"Usage:
$0
-e USERNAME to re-enable a user"
...
...
@@ -12,10 +10,10 @@ if [[ "$EUID" -ne 0 ]]; then
exit
1
fi
if
[
-z
"
$username
"
]
;
then
usage
exit1
fi
if
[
"$#"
-eq
0
]
;
then
usage
exit
1
fi
while
getopts
':d:e:'
OPTION
;
do
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment