mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-24 22:11:56 +00:00
Update pms-copy-data.sh
This commit is contained in:
parent
537f2c6d09
commit
a938d528c8
@ -85,7 +85,7 @@ if [ $(pct status $CTID_TO | sed 's/.* //') == 'running' ]; then
|
|||||||
pct stop $CTID_TO
|
pct stop $CTID_TO
|
||||||
fi
|
fi
|
||||||
msg "Mounting Container Disks..."
|
msg "Mounting Container Disks..."
|
||||||
DATA_PATH="/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/"
|
DATA_PATH=/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/
|
||||||
CTID_FROM_PATH=$(pct mount $CTID_FROM | sed -n "s/.*'\(.*\)'/\1/p") || \
|
CTID_FROM_PATH=$(pct mount $CTID_FROM | sed -n "s/.*'\(.*\)'/\1/p") || \
|
||||||
die "There was a problem mounting the root disk of LXC '${CTID_FROM}'."
|
die "There was a problem mounting the root disk of LXC '${CTID_FROM}'."
|
||||||
[ -d "${CTID_FROM_PATH}${DATA_PATH}" ] || \
|
[ -d "${CTID_FROM_PATH}${DATA_PATH}" ] || \
|
||||||
|
Loading…
Reference in New Issue
Block a user