Skip to content
Snippets Groups Projects
Commit 2569e9e3 authored by Dylan Wheeler's avatar Dylan Wheeler
Browse files

feat: adding usage information to the script

parent 996f02b4
No related branches found
No related tags found
1 merge request!158FEAT: introduce shell script to allow user to disable another users crontab...
#!/bin/bash #!/bin/bash
usage() {
echo "Usage: $0 -d USERNAME to disable a user"
echo "Usage: $0 -e USERNAME to re-enable a user"
}
if [[ "$EUID" -ne 0 ]]; then
echo "This script must be run as root!"
exit 1
fi
if [ -z "$username" ]; then
usage
exit 1
fi
while getopts ':d:e:' OPTION; do while getopts ':d:e:' OPTION; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment