mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Fix --branch=
This commit is contained in:
parent
f9d29e67d5
commit
4174bfe08a
2 changed files with 5 additions and 5 deletions
|
@ -59,7 +59,7 @@ then
|
|||
else
|
||||
# Reduce the arguments for getopts
|
||||
arguments="$*"
|
||||
arguments=${arguments//--branch=/-b }
|
||||
arguments=${arguments//--branch=/-b}
|
||||
arguments=${arguments//--force-install-ok/-f}
|
||||
arguments=${arguments//--interrupt/-i}
|
||||
arguments=${arguments//--help/-h}
|
||||
|
@ -80,7 +80,7 @@ else
|
|||
case $parameter in
|
||||
b)
|
||||
# --branch=branch-name
|
||||
gitbranch="$OPTARG"
|
||||
gitbranch="-b $OPTARG"
|
||||
;;
|
||||
f)
|
||||
# --force-install-ok
|
||||
|
|
|
@ -1020,12 +1020,12 @@ CHECK_BACKUP_RESTORE () {
|
|||
then
|
||||
# Uses the default snapshot
|
||||
current_snapshot=snap0
|
||||
# Place the copy of the backup archive in the container.
|
||||
sudo mv -f ./archives /var/lib/lxcsnaps/$lxc_name/$current_snapshot/rootfs/home/yunohost.backup/
|
||||
|
||||
# Stop and restore the LXC container
|
||||
LXC_STOP
|
||||
|
||||
# Place the copy of the backup archive in the container.
|
||||
sudo mv -f ./archives /var/lib/lxc/$lxc_name/rootfs/home/yunohost.backup/
|
||||
|
||||
ECHO_FORMAT "\nRestore on a clean YunoHost system...\n" "white" "bold" clog
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue