From d7c7407cfd3e0343517fbee4c5f4c9e73854bb1a Mon Sep 17 00:00:00 2001 From: Moe-hacker Date: Wed, 11 Dec 2024 09:06:54 +0000 Subject: [PATCH] Add an emoji for status --- action.sh | 4 ++-- inotify.sh | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/action.sh b/action.sh index 850d0ea..270853f 100755 --- a/action.sh +++ b/action.sh @@ -7,8 +7,8 @@ else fi if [ "$STATUS" = "stopped" ]; then "$MODDIR"/start.sh - sed -i 's|\[.*\]|[status=running]|' "$MODDIR/module.prop" + sed -i 's|\[.*\]|[status=running😉]|' "$MODDIR/module.prop" else "$MODDIR"/stop.sh - sed -i 's|\[.*\]|[status=stopped]|' "$MODDIR/module.prop" + sed -i 's|\[.*\]|[status=stopped😇]|' "$MODDIR/module.prop" fi diff --git a/inotify.sh b/inotify.sh index 5f8adf8..93facc1 100755 --- a/inotify.sh +++ b/inotify.sh @@ -24,11 +24,11 @@ done case "$events" in d) "$MODULEDIR"/start.sh - sed -i "6cdescription=[ on : $NOW ] $DESCRIPTION" "$MODULEDIR"/module.prop + sed -i "6cdescription=[status=running😉] $DESCRIPTION" "$MODULEDIR"/module.prop ;; n) "$MODULEDIR"/stop.sh - sed -i "6cdescription=[ off : $NOW ] $DESCRIPTION" "$MODULEDIR"/module.prop + sed -i "6cdescription=[status=stopped😇] $DESCRIPTION" "$MODULEDIR"/module.prop ;; *) : @@ -45,6 +45,3 @@ echo "$pid" > "$MODULEDIR"/.pidfile sleep 15 rm -f "$MODULEDIR"/.pidfile ) & - - -sed -i "6cdescription=[ inotify-pid=$pid ] Start/stop the container in real-time through this module" "$MODULEDIR"/module.prop