mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Double-quotes yunohost args
This commit is contained in:
parent
e0ddde7db5
commit
e08672bb2b
2 changed files with 10 additions and 7 deletions
|
@ -12,7 +12,10 @@ LXC_BRIDGE=$(cat "$pcheck_config" | grep LXC_BRIDGE= | cut -d '=' -f2)
|
|||
main_iface=$(cat "$pcheck_config" | grep iface= | cut -d '=' -f2)
|
||||
|
||||
echo "> Arrêt du conteneur"
|
||||
if [ $(sudo lxc-info --name $LXC_NAME | grep -c "STOPPED") -eq 0 ]; then
|
||||
echo "Arrêt du conteneur $LXC_NAME"
|
||||
sudo lxc-stop -n $LXC_NAME
|
||||
fi
|
||||
|
||||
echo "> Suppression des règles de parefeu"
|
||||
if sudo iptables -C FORWARD -i $LXC_BRIDGE -o $main_iface -j ACCEPT 2> /dev/null
|
||||
|
|
|
@ -355,7 +355,7 @@ CHECK_SETUP () {
|
|||
fi
|
||||
|
||||
# Copy original arguments
|
||||
local manifest_args_mod=$manifest_arguments
|
||||
local manifest_args_mod="$manifest_arguments"
|
||||
|
||||
# Replace manifest key for the test
|
||||
replace_manifest_key "domain" "$sub_domain"
|
||||
|
@ -431,7 +431,7 @@ CHECK_UPGRADE () {
|
|||
[ "$previous_install" = "1" ] && return
|
||||
|
||||
# Copy original arguments
|
||||
local manifest_args_mod=$manifest_arguments
|
||||
local manifest_args_mod="$manifest_arguments"
|
||||
|
||||
# Replace manifest key for the test
|
||||
replace_manifest_key "domain" "$sub_domain"
|
||||
|
@ -513,7 +513,7 @@ CHECK_PUBLIC_PRIVATE () {
|
|||
[ "$previous_install" = "1" ] && return
|
||||
|
||||
# Copy original arguments
|
||||
local manifest_args_mod=$manifest_arguments
|
||||
local manifest_args_mod="$manifest_arguments"
|
||||
|
||||
# Replace manifest key for the test
|
||||
replace_manifest_key "domain" "$sub_domain"
|
||||
|
@ -630,7 +630,7 @@ CHECK_MULTI_INSTANCE () {
|
|||
fi
|
||||
|
||||
# Copy original arguments
|
||||
local manifest_args_mod=$manifest_arguments
|
||||
local manifest_args_mod="$manifest_arguments"
|
||||
|
||||
# Replace manifest key for the test
|
||||
replace_manifest_key "domain" "$sub_domain"
|
||||
|
@ -758,7 +758,7 @@ CHECK_COMMON_ERROR () {
|
|||
[ "$previous_install" = "1" ] && return
|
||||
|
||||
# Copy original arguments
|
||||
local manifest_args_mod=$manifest_arguments
|
||||
local manifest_args_mod="$manifest_arguments"
|
||||
|
||||
# Replace manifest key for the test
|
||||
replace_manifest_key "domain" "$sub_domain"
|
||||
|
@ -843,7 +843,7 @@ CHECK_BACKUP_RESTORE () {
|
|||
[ "$previous_install" = "1" ] && return
|
||||
|
||||
# Copy original arguments
|
||||
local manifest_args_mod=$manifest_arguments
|
||||
local manifest_args_mod="$manifest_arguments"
|
||||
|
||||
# Replace manifest key for the test
|
||||
replace_manifest_key "domain" "$sub_domain"
|
||||
|
|
Loading…
Add table
Reference in a new issue