Check if casaos service is active

This commit is contained in:
Christopher
2023-09-23 20:27:59 -05:00
parent 46d1a38a8e
commit 115989a72d

View File

@@ -1,6 +1,12 @@
#!/bin/bash
# This script allows the user to reset their CasaOS username and password.
# Check if the casaos.service is active
if ! systemctl is-active --quiet casaos.service; then
echo "CasaOS service is not active. Exiting."
exit 1
fi
# Prompt user for confirmation
read -p "Do you want to reset your CasaOS username and password? (y/n): " response