Browse Source

* make remaining bash scripts as executable

- remove unnecessary zone ru from example domain naming
* correct (un)create symlinks scripts
master
qemu-test 2 years ago
parent
commit
15c6a8eb53
  1. 0
      bash/tail-db-general-log.sh
  2. 9
      config/nginx/conf.d/vhosts.conf.example
  3. 2
      create-symlinks.sh
  4. 4
      uncreate-symlinks.sh

0
bash/tail-db-general-log.sh

9
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;

2
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}/

4
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
Loading…
Cancel
Save