Pipe through temp folder to scripts.
This commit is contained in:
@ -1,6 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
_autocommandrun_volume() {
|
||||
command="$1"
|
||||
value="$2"
|
||||
backup_file="$3"
|
||||
temp_path="$4"
|
||||
}
|
||||
|
||||
_autocommandrun_path() {
|
||||
command="$1"
|
||||
value="$2"
|
||||
backup_file="$3"
|
||||
temp_path="$4"
|
||||
}
|
||||
|
||||
_autocommandrun_file() {
|
||||
command="$1"
|
||||
value="$2"
|
||||
backup_file="$3"
|
||||
temp_path="$4"
|
||||
}
|
||||
|
||||
_autocommandrun() {
|
||||
command="$1"
|
||||
key="$2"
|
||||
@ -13,12 +34,15 @@ _autocommandrun() {
|
||||
case "$key" in
|
||||
volume)
|
||||
echo "Volume: $value"
|
||||
_autocommandrun_volume "$command" "$value" "$backup_file" "$temp_path"
|
||||
;;
|
||||
path)
|
||||
echo "Path: $value"
|
||||
_autocommandrun_path "$command" "$value" "$backup_file" "$temp_path"
|
||||
;;
|
||||
file)
|
||||
echo "File: $value"
|
||||
_autocommandrun_file "$command" "$value" "$backup_file" "$temp_path"
|
||||
;;
|
||||
*)
|
||||
_die "Unknown key $key passed to auto${command}. We only support volume, path and file."
|
||||
|
@ -27,16 +27,6 @@ fi
|
||||
|
||||
title "Checking template $TEMPLATE"
|
||||
|
||||
|
||||
HASH1=$(ds hash "$SCRIPT_DIR/$TEMPLATE")
|
||||
HASH2=$(ds hash "/opt/dropshell/templates/$TEMPLATE")
|
||||
|
||||
if [ "$HASH1" != "$HASH2" ]; then
|
||||
echo "Template $TEMPLATE is out of date"
|
||||
echo "Need to run build.sh, and install locally."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
SERVICE_NAME="test-$TEMPLATE"
|
||||
|
||||
title "Creating service"
|
||||
|
Reference in New Issue
Block a user