mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-03-12 00:20:12 +00:00
Update zoneminder.sh
Remove extra bit from before reading instructions
This commit is contained in:
parent
2fd156686e
commit
445baab1ef
@ -86,29 +86,8 @@ function update_script() {
|
||||
exit
|
||||
}
|
||||
|
||||
function post_build_provision() {
|
||||
local FILE='zoneminder-install.sh'
|
||||
local file_name="${FILE##*/}"
|
||||
|
||||
# Make sure we actually have the install script on the PVE host:
|
||||
if [[ ! -f "$FILE" ]]; then
|
||||
msg_error "Unable to find $FILE on Proxmox host. Please ensure it’s in the same directory."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
msg_info "Uploading $FILE to container"
|
||||
pct push "${CTID}" "$FILE" "/root/$file_name" >/dev/null 2>&1
|
||||
msg_ok "Uploaded $FILE"
|
||||
|
||||
msg_info "Executing $FILE inside container"
|
||||
pct exec "${CTID}" -- chmod +x "/root/$file_name"
|
||||
pct exec "${CTID}" -- "/root/$file_name"
|
||||
msg_ok "Executed $FILE"
|
||||
}
|
||||
|
||||
start
|
||||
build_container
|
||||
post_build_provision
|
||||
description
|
||||
|
||||
msg_ok "Completed Successfully!\n"
|
||||
|
Loading…
Reference in New Issue
Block a user