Minor fixes
This commit is contained in:
parent
13f1569d3b
commit
572ca12e64
2 changed files with 3 additions and 2 deletions
|
|
@ -52,7 +52,7 @@ deploy_folder()
|
||||||
archive="$(getname "$1").tar.$extension"
|
archive="$(getname "$1").tar.$extension"
|
||||||
package "$1" "$tmpdirar/$archive" || return $?
|
package "$1" "$tmpdirar/$archive" || return $?
|
||||||
deploy_package "$tmpdirar/$archive" || return $?
|
deploy_package "$tmpdirar/$archive" || return $?
|
||||||
rm "$tmpdirar"
|
rm -r "$tmpdirar"
|
||||||
else
|
else
|
||||||
echo "Target '$1' doesn't exist"
|
echo "Target '$1' doesn't exist"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ Config (zpkg.conf):
|
||||||
SSH_ADDRESS SSH access for deploy
|
SSH_ADDRESS SSH access for deploy
|
||||||
HTTP_ADDRESS HTTP address for downloading packages
|
HTTP_ADDRESS HTTP address for downloading packages
|
||||||
PKG_PATH Path to the local package database
|
PKG_PATH Path to the local package database
|
||||||
|
COMPRESSION Compression configuration, extension:binary:parallel_binary:options
|
||||||
ALLOW_ROOT Set to true to allow running as root without -f. Default: false"
|
ALLOW_ROOT Set to true to allow running as root without -f. Default: false"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -40,7 +41,7 @@ error() {
|
||||||
package_info() {
|
package_info() {
|
||||||
unset cleanup
|
unset cleanup
|
||||||
status="not installed"
|
status="not installed"
|
||||||
grep -wq "^$1" "$PKG_PATH/pkglist" 2>/dev/null || { echo "Package '$I' not found" && return 1; }
|
grep -wq "^$1" "$PKG_PATH/pkglist" 2>/dev/null || { echo "Package '$1' not found" && return 1; }
|
||||||
grep -wq "^$1" "$PKG_PATH/installed" 2>/dev/null && status=installed
|
grep -wq "^$1" "$PKG_PATH/installed" 2>/dev/null && status=installed
|
||||||
tmpdir="/tmp/zpkg_$(random_string 5)"
|
tmpdir="/tmp/zpkg_$(random_string 5)"
|
||||||
mkdir -p "$tmpdir" || return $?
|
mkdir -p "$tmpdir" || return $?
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue