From 15c6a8eb53fa7289083aaa2e5cef9e31a3632dc4 Mon Sep 17 00:00:00 2001 From: qemu-test Date: Tue, 17 Jan 2023 11:55:27 +0300 Subject: [PATCH] * make remaining bash scripts as executable - remove unnecessary zone ru from example domain naming * correct (un)create symlinks scripts --- bash/tail-db-general-log.sh | 0 config/nginx/conf.d/vhosts.conf.example | 9 +++------ create-symlinks.sh | 2 +- uncreate-symlinks.sh | 4 ++-- 4 files changed, 6 insertions(+), 9 deletions(-) mode change 100644 => 100755 bash/tail-db-general-log.sh diff --git a/bash/tail-db-general-log.sh b/bash/tail-db-general-log.sh old mode 100644 new mode 100755 diff --git a/config/nginx/conf.d/vhosts.conf.example b/config/nginx/conf.d/vhosts.conf.example index 51be55f..819a4e8 100644 --- a/config/nginx/conf.d/vhosts.conf.example +++ b/config/nginx/conf.d/vhosts.conf.example @@ -7,8 +7,8 @@ upstream php74 { } map $http_host $root { - octobercms.ru.local.wpstudio.ru /usr/share/nginx/html/someproject; - wordpress.ru.local.wpstudio.ru /usr/share/nginx/html/someprojectwp; + octobercms.local.wpstudio.ru /usr/share/nginx/html/someproject; + wordpress.local.wpstudio.ru /usr/share/nginx/html/someprojectwp; } # @see https://github.com/OFFLINE-GmbH/oc-responsive-images-plugin/#responsive-images @@ -20,13 +20,10 @@ map $http_accept $webp_suffix { resolver 8.8.8.8; map $http_host $uploads_upstream { - wordpress.ru.local.wpstudio.ru "https://somewp.site"; + wordpress.local.wpstudio.ru "https://somewp.site"; } server { - server_name - octobercms.ru.local.wpstudio.ru - ; listen 80 default; root $root; #include global/auth.conf; diff --git a/create-symlinks.sh b/create-symlinks.sh index b84801f..8b3c346 100755 --- a/create-symlinks.sh +++ b/create-symlinks.sh @@ -3,7 +3,7 @@ DIR="$(realpath $(dirname "$(readlink -f "$0")"))" BASH_SCRIPTS_DIR="${DIR}/bash" -BASH_SCRIPTS=(ls $BASH_SCRIPTS_DIR) +BASH_SCRIPTS=(`ls $BASH_SCRIPTS_DIR`) for FILENAME in "${BASH_SCRIPTS[@]}"; do ln -s ${BASH_SCRIPTS_DIR}/${FILENAME} ${HOME}/ diff --git a/uncreate-symlinks.sh b/uncreate-symlinks.sh index b84801f..3b0eb9f 100755 --- a/uncreate-symlinks.sh +++ b/uncreate-symlinks.sh @@ -3,8 +3,8 @@ DIR="$(realpath $(dirname "$(readlink -f "$0")"))" BASH_SCRIPTS_DIR="${DIR}/bash" -BASH_SCRIPTS=(ls $BASH_SCRIPTS_DIR) +BASH_SCRIPTS=(`ls $BASH_SCRIPTS_DIR`) for FILENAME in "${BASH_SCRIPTS[@]}"; do - ln -s ${BASH_SCRIPTS_DIR}/${FILENAME} ${HOME}/ + rm ${HOME}/${FILENAME} done \ No newline at end of file