Multiple directories
This commit is contained in:
@ -0,0 +1,22 @@
|
||||
DropShell Template Example
|
||||
|
||||
Shell scripts defined in this folder are run as DropShell commands on the remote server (not locally!).
|
||||
All scripts are passed the server-specific service environment (SSSE) file as an argument.
|
||||
|
||||
The default SSSE file used when a new service is created is in example/service.env. This must exist,
|
||||
and must at minimum contain the TEMPLATE=<template_name> variable.
|
||||
|
||||
The backups script gets a second argument, which is the backup file to create (a single tgz file).
|
||||
|
||||
Mandatory scripts are:
|
||||
- install.sh
|
||||
- uninstall.sh
|
||||
- start.sh
|
||||
- stop.sh
|
||||
|
||||
Optional standard scripts are:
|
||||
- backup.sh
|
||||
- status.sh
|
||||
- ports.sh
|
||||
- logs.sh
|
||||
|
||||
|
@ -63,6 +63,10 @@ grey_end() {
|
||||
}
|
||||
|
||||
create_and_start_container() {
|
||||
if [ -z "$1" ] || [ -z "$2" ]; then
|
||||
die "Template error: create_and_start_container <run_cmd> <container_name>"
|
||||
fi
|
||||
|
||||
local run_cmd="$1"
|
||||
local container_name="$2"
|
||||
|
||||
|
Reference in New Issue
Block a user