optimize_mysql_tables-ND.sh: fix error in handling nd-archiv.
This commit is contained in:
parent
ab2421a717
commit
43421e7d85
@ -235,20 +235,20 @@ for _val in ${mysql_credential_args_arr[@]} ; do
|
||||
|
||||
elif [[ "$db" = "nd_archiv" ]]; then
|
||||
|
||||
if [[ -d "/var/www/html/projekte/nd_archiv/htdocs" ]] ; then
|
||||
if [[ -d "/var/www/html/projekte/nd-archiv/htdocs" ]] ; then
|
||||
|
||||
if [[ -d "/var/www/html/projekte/nd/htdocs503" ]] ; then
|
||||
if [[ -d "/var/www/html/projekte/nd-archiv/htdocs503" ]] ; then
|
||||
|
||||
mv /var/www/html/projekte/nd_archiv/htdocs /var/www/html/projekte/nd_archiv/htdocs.$_service_extension > $tmp_log_file 2>&1
|
||||
mv /var/www/html/projekte/nd-archiv/htdocs /var/www/html/projekte/nd-archiv/htdocs.$_service_extension > $tmp_log_file 2>&1
|
||||
if [[ $? -ne 0 ]]; then
|
||||
error "Error while moving '/var/www/html/projekte/nd_archiv/htdocs'.\n$(cat $tmp_log_file)"
|
||||
error "Error while moving '/var/www/html/projekte/nd-archiv/htdocs'.\n$(cat $tmp_log_file)"
|
||||
else
|
||||
_htdocs_nd_archiv_moved=true
|
||||
fi
|
||||
|
||||
ln -s htdocs503 /var/www/html/projekte/nd/htdocs > $tmp_log_file 2>&1
|
||||
ln -s htdocs503 /var/www/html/projekte/nd-archiv/htdocs > $tmp_log_file 2>&1
|
||||
if [[ $? -ne 0 ]]; then
|
||||
error "Error while linking '/var/www/html/projekte/nd_archiv/htdocs' --> 'htdocs503'.\n$(cat $tmp_log_file)"
|
||||
error "Error while linking '/var/www/html/projekte/nd-archiv/htdocs' --> 'htdocs503'.\n$(cat $tmp_log_file)"
|
||||
else
|
||||
_htdocs_nd_archiv_symlinked=true
|
||||
fi
|
||||
@ -259,10 +259,10 @@ for _val in ${mysql_credential_args_arr[@]} ; do
|
||||
fi
|
||||
|
||||
else
|
||||
error "Directory '/var/www/html/projekte/nd_archiv/htdocs503' not found."
|
||||
error "Directory '/var/www/html/projekte/nd-archiv/htdocs503' not found."
|
||||
fi
|
||||
else
|
||||
error "Directory '/var/www/html/projekte/nd_archiv/htdocs503' not found."
|
||||
error "Directory '/var/www/html/projekte/nd-archiv/htdocs503' not found."
|
||||
fi
|
||||
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user