biiig wrench
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
source "$(dirname "$0")/_common.sh"
|
||||
source "${AGENT_PATH}/_common.sh"
|
||||
|
||||
# Get backup file path from argument
|
||||
BACKUP_FILE="$1"
|
||||
|
2
templates/squashkiwi/install.sh
Executable file → Normal file
2
templates/squashkiwi/install.sh
Executable file → Normal file
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
source "$(dirname "$0")/_common.sh"
|
||||
source "${AGENT_PATH}/_common.sh"
|
||||
|
||||
check_required_env_vars \
|
||||
"IMAGE_REGISTRY" \
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
source "$(dirname "$0")/_common.sh"
|
||||
source "${AGENT_PATH}/_common.sh"
|
||||
|
||||
# check required env vars
|
||||
check_required_env_vars \
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
source "$(dirname "$0")/_common.sh"
|
||||
source "${AGENT_PATH}/_common.sh"
|
||||
|
||||
check_required_env_vars "HOST_PORT"
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
#!/bin/bash
|
||||
source "${AGENT_PATH}/_common.sh"
|
||||
|
||||
# RESTORE SCRIPT
|
||||
# The restore script is OPTIONAL.
|
||||
# It is used to restore the service on the server from a backup file.
|
||||
# It is called with one argument: the path to the backup file.
|
||||
|
||||
source "$(dirname "$0")/_common.sh"
|
||||
check_required_env_vars "CONTAINER_NAME" "LOCAL_DATA_FOLDER"
|
||||
|
||||
# Get backup file path from first argument
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
source "$(dirname "$0")/_common.sh"
|
||||
source "${AGENT_PATH}/_common.sh"
|
||||
|
||||
|
||||
if ! _is_container_running "$CONTAINER_NAME"; then
|
||||
|
2
templates/squashkiwi/start.sh
Executable file → Normal file
2
templates/squashkiwi/start.sh
Executable file → Normal file
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
source "$(dirname "$0")/_common.sh"
|
||||
source "${AGENT_PATH}/_common.sh"
|
||||
|
||||
check_required_env_vars \
|
||||
"CONTAINER_NAME" \
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
source "$(dirname "$0")/_common.sh"
|
||||
source "${AGENT_PATH}/_common.sh"
|
||||
|
||||
check_required_env_vars \
|
||||
"CONTAINER_NAME" \
|
||||
|
2
templates/squashkiwi/stop.sh
Executable file → Normal file
2
templates/squashkiwi/stop.sh
Executable file → Normal file
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
source "$(dirname "$0")/_common.sh"
|
||||
source "${AGENT_PATH}/_common.sh"
|
||||
|
||||
check_required_env_vars \
|
||||
"CONTAINER_NAME"
|
||||
|
@ -1,11 +1,11 @@
|
||||
#!/bin/bash
|
||||
source "${AGENT_PATH}/_common.sh"
|
||||
|
||||
# UNINSTALL SCRIPT
|
||||
# The uninstall script is required for all templates.
|
||||
# It is used to uninstall the service from the server.
|
||||
# It is called with the path to the server specific env file as an argument.
|
||||
|
||||
source "$(dirname "$0")/_common.sh"
|
||||
check_required_env_vars "CONTAINER_NAME" "IMAGE_REGISTRY" "IMAGE_REPO" "IMAGE_TAG"
|
||||
|
||||
_remove_container $CONTAINER_NAME || die "Failed to remove container ${CONTAINER_NAME}"
|
||||
|
Reference in New Issue
Block a user