Don't look for domain if this is not a web app
This commit is contained in:
parent
85cbecbc45
commit
49a4b445f7
|
@ -438,10 +438,10 @@ fi
|
|||
echo '}'
|
||||
echo ''
|
||||
echo "function restore_local_${app_name} {"
|
||||
echo " if ! grep -q \"${app_name} domain\" \"\$COMPLETION_FILE\"; then"
|
||||
echo ' return'
|
||||
echo ' fi'
|
||||
if [ $app_webui ]; then
|
||||
echo " if ! grep -q \"${app_name} domain\" \"\$COMPLETION_FILE\"; then"
|
||||
echo ' return'
|
||||
echo ' fi'
|
||||
echo " ${app_name_upper}_DOMAIN_NAME=\$(get_completion_param \"${app_name} domain\")"
|
||||
echo " if [ ! \"\$${app_name_upper}_DOMAIN_NAME\" ]; then"
|
||||
echo " return"
|
||||
|
@ -526,13 +526,15 @@ fi
|
|||
echo '}'
|
||||
echo ''
|
||||
echo "function restore_remote_${app_name} {"
|
||||
echo " if ! grep -q \"${app_name} domain\" \"\$COMPLETION_FILE\"; then"
|
||||
echo ' return'
|
||||
echo ' fi'
|
||||
echo " ${app_name_upper}_DOMAIN_NAME=\$(get_completion_param \"${app_name} domain\")"
|
||||
echo " if [ ! \"\$${app_name_upper}_DOMAIN_NAME\" ]; then"
|
||||
echo " return"
|
||||
echo " fi"
|
||||
if [ $app_webui ]; then
|
||||
echo " if ! grep -q \"${app_name} domain\" \"\$COMPLETION_FILE\"; then"
|
||||
echo ' return'
|
||||
echo ' fi'
|
||||
echo " ${app_name_upper}_DOMAIN_NAME=\$(get_completion_param \"${app_name} domain\")"
|
||||
echo " if [ ! \"\$${app_name_upper}_DOMAIN_NAME\" ]; then"
|
||||
echo " return"
|
||||
echo " fi"
|
||||
fi
|
||||
echo " temp_restore_dir=/root/temp${app_name}"
|
||||
if [ ! "$app_dir" ]; then
|
||||
echo " ${app_name}_dir=/var/www/\${${app_name_upper}_DOMAIN_NAME}/htdocs"
|
||||
|
|
Loading…
Reference in New Issue