mirror of
https://github.com/guezoloic/serverconfig.git
synced 2026-03-28 18:03:49 +00:00
feat: password env variable
This commit is contained in:
@@ -10,8 +10,8 @@ readonly PROJECT_DIR 2>/dev/null
|
||||
source $PROJECT_DIR/utils.sh 2>/dev/null
|
||||
|
||||
INSTALLED=$1
|
||||
if [[ "--install" == $INSTALLED ]]; then
|
||||
log_info "disk-monitor Installation"
|
||||
if [[ "--install" == $INSTALLED ]]; then
|
||||
log_info "disk-monitor Installation"
|
||||
CMD="0 3 * * 1 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $PROJECT_DIR/disk-monitor.sh"
|
||||
add_crontab "$CMD"
|
||||
exit
|
||||
@@ -19,7 +19,7 @@ fi
|
||||
|
||||
usage=80
|
||||
send_notification "$(
|
||||
df -h / | grep / | awk -v max="$usage" '{
|
||||
df -h / | grep / | awk -v max="$usage" '{
|
||||
usage = $5;
|
||||
gsub("%", "", usage);
|
||||
if (usage > max) {
|
||||
|
||||
Reference in New Issue
Block a user