Wrench
Some checks failed
Dropshell Test / Build_and_Test (push) Has been cancelled

This commit is contained in:
Your Name
2025-05-17 18:17:25 +12:00
parent 583bb18676
commit 5bf93dc954
13 changed files with 353 additions and 343 deletions

View File

@ -1,25 +0,0 @@
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$SCRIPT_DIR/shared/_common.sh"
A_SERVICE="$1"
A_SERVICE_PATH="$2"
# 1. Check if service directory exists on server
[ -d "$A_SERVICE_PATH" ] || _die "Service is not installed: $A_SERVICE"
# uninstall the service
if [ -f "$A_SERVICE_PATH/uninstall.sh" ]; then
$A_SERVICE_PATH/uninstall.sh
fi
# nuke the service
if [ -f "$A_SERVICE_PATH/nuke.sh" ]; then
$A_SERVICE_PATH/nuke.sh
fi
# remove the service directory
rm -rf "$A_SERVICE_PATH"

View File

@ -180,4 +180,4 @@ _root_remove_tree() {
# Load autocommands
source "${AGENT_PATH}/_autocommands.sh"
source "${AGENT_PATH}/datacommands.sh"

View File

@ -155,16 +155,16 @@ _autocommandparse() {
}
autocreate() {
datacreate() {
_autocommandparse create none "$@"
}
autonuke() {
datanuke() {
_autocommandparse nuke none "$@"
}
autobackup() {
databackup() {
_check_required_env_vars "BACKUP_FILE" "TEMP_DIR"
BACKUP_TEMP_PATH="$TEMP_DIR/backup"
@ -176,7 +176,7 @@ autobackup() {
tar zcvf "$BACKUP_FILE" -C "$BACKUP_TEMP_PATH" .
}
autorestore() {
datarestore() {
_check_required_env_vars "BACKUP_FILE" "TEMP_DIR"
BACKUP_TEMP_PATH="$TEMP_DIR/restore"