mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-12 18:29:45 +00:00
[core] remove unneeded vars from shellcheck (#3899)
* remove unneeded wars * Update alpine-wireguard-install.sh --------- Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
This commit is contained in:
parent
d557d01161
commit
30e8cbf5b4
68 changed files with 301 additions and 307 deletions
|
@ -74,13 +74,13 @@ while [ -z "${CTID_FROM:+x}" ]; do
|
|||
CTID_FROM=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "$TITLE" --radiolist \
|
||||
"\nWhich Plex Media Server LXC would you like to copy FROM?\n" \
|
||||
16 $(($MSG_MAX_LENGTH + 23)) 6 \
|
||||
"${CTID_MENU[@]}" 3>&1 1>&2 2>&3) || exit
|
||||
"${CTID_MENU[@]}" 3>&1 1>&2 2>&3)
|
||||
done
|
||||
while [ -z "${CTID_TO:+x}" ]; do
|
||||
CTID_TO=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "$TITLE" --radiolist \
|
||||
"\nWhich Plex Media Server LXC would you like to copy TO?\n" \
|
||||
16 $(($MSG_MAX_LENGTH + 23)) 6 \
|
||||
"${CTID_MENU[@]}" 3>&1 1>&2 2>&3) || exit
|
||||
"${CTID_MENU[@]}" 3>&1 1>&2 2>&3)
|
||||
done
|
||||
for i in ${!CTID_MENU[@]}; do
|
||||
[ "${CTID_MENU[$i]}" == "$CTID_FROM" ] &&
|
||||
|
@ -91,7 +91,7 @@ done
|
|||
whiptail --backtitle "Proxmox VE Helper Scripts" --defaultno --title "$TITLE" --yesno \
|
||||
"Are you sure you want to copy data between the following LXCs?
|
||||
$CTID_FROM (${CTID_FROM_HOSTNAME}) -> $CTID_TO (${CTID_TO_HOSTNAME})
|
||||
Version: 2022.01.24" 13 50 || exit
|
||||
Version: 2022.01.24" 13 50
|
||||
info "Plex Media Server Data from '$CTID_FROM' to '$CTID_TO'"
|
||||
if [ $(pct status $CTID_TO | sed 's/.* //') == 'running' ]; then
|
||||
msg "Stopping '$CTID_TO'..."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue