Files
Linux_post_install/bin/pos-entertainment-disable
Your Name 99085adc76 feat: add web dashboard with slide-in drawer navigation
- Flask backend with 23 API routes (entertainment, telegram, docker, system)
- Alpine.js + Tailwind CSS dark-mode SPA with 4 tabs
- pos-dashboard CLI tool with port/config management
- Mobile slide-in drawer with swipe-to-close
- Sticky header stays pinned on scroll
- Tab completion fixes for category-less tools
- POST /api/telegram/commands endpoint for adding commands
2026-08-18 11:54:41 -04:00

37 lines
907 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# POS: entertainment disable — Disable a plugin's auto-trigger (remove it from ENABLED)
source "$(dirname "$0")/../lib/common.sh" 2>/dev/null || source "$(dirname "$0")/common.sh"
source "$(dirname "$0")/../lib/entertainment-lib.sh" 2>/dev/null || source "$(dirname "$0")/entertainment-lib.sh"
usage() {
cat <<EOF
Usage: pos entertainment disable <plugin>
Remove a plugin from the ENABLED list in
$CONFIG_FILE
and remove its scheduled systemd user timer.
Examples:
pos entertainment disable weather
pos entertainment disable gold
EOF
exit 0
}
case "${1:-}" in
-h|--help) usage ;;
esac
[ $# -eq 1 ] || usage
plugin="$1"
if ! ent_plugin_exists "$(ent_plugin_dir)" "$plugin"; then
warn "'$plugin' is not an installed plugin — removing from ENABLED anyway"
fi
enabled_remove "$plugin"
sync_timers
ok "'$plugin' disabled — schedule synced"