* renaming xdebug scripts for non-conflicts name with user defined scripts in home directory starts with s and q

+ tail db general log bash helper
* correct path to xdebug2 config for previous php 74 version
- remove unnecessary laradock example crontab because this script moved crontab-example dir
* improve (un)create symlinks script logic
* use only newly composer auth path
This commit is contained in:
2023-01-15 15:08:15 +03:00
parent 9fab9307b6
commit dbe3a916f1
8 changed files with 29 additions and 16 deletions

View File

@ -0,0 +1,10 @@
#!/bin/bash
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
GENERAL_LOG_FILE_PATH="${DIR}/log/mariadb/mariadb.log"
sudo truncate -s 0 $GENERAL_LOG_FILE_PATH
clear
sudo tail -f $GENERAL_LOG_FILE_PATH

View File

@ -1,8 +1,10 @@
#!/bin/bash #!/bin/bash
DIR="$(realpath $(dirname "$(readlink -f "$0")"))" DIR="$(realpath $(dirname "$(readlink -f "$0")"))"
ln -s ${DIR}/bash/start-xdebug.sh ${HOME}/ BASH_SCRIPTS_DIR="${DIR}/bash"
ln -s ${DIR}/bash/quit-xdebug.sh ${HOME}/
ln -s ${DIR}/bash/restart-nginx.sh ${HOME}/ BASH_SCRIPTS=(ls $BASH_SCRIPTS_DIR)
ln -s ${DIR}/bash/mysql.sh ${HOME}/
ln -s ${DIR}/bash/enter-to-workspace.sh ${HOME}/ for FILENAME in "${BASH_SCRIPTS[@]}"; do
ln -s ${BASH_SCRIPTS_DIR}/${FILENAME} ${HOME}/
done

View File

@ -53,7 +53,7 @@ services:
secrets: secrets:
- user_ssh_key - user_ssh_key
- user_known_hosts - user_known_hosts
- composer_auth2 - composer_auth
inbucket: inbucket:
image: inbucket/inbucket image: inbucket/inbucket
restart: always restart: always
@ -92,7 +92,5 @@ secrets:
file: ~/.ssh/id_rsa file: ~/.ssh/id_rsa
user_known_hosts: user_known_hosts:
file: ~/.ssh/known_hosts file: ~/.ssh/known_hosts
composer1_auth: composer_auth:
file: ~/.composer/auth.json
composer2_auth:
file: ~/.config/composer/auth.json file: ~/.config/composer/auth.json

View File

@ -30,7 +30,7 @@ RUN if [ ${INSTALL_PEAR_MAIL} = true ]; then \
########################################################################### ###########################################################################
# Copy xdebug configuration for remote debugging # Copy xdebug configuration for remote debugging
COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini COPY ./xdebug2/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
########################################################################### ###########################################################################
# Tune opts: # Tune opts:

View File

@ -1 +0,0 @@
#* * * * * laradock /usr/bin/php /var/www/artisan schedule:run >> /dev/null 2>&1

View File

@ -1,6 +1,10 @@
#!/bin/bash #!/bin/bash
rm ${HOME}/start-xdebug.sh DIR="$(realpath $(dirname "$(readlink -f "$0")"))"
rm ${HOME}/quit-xdebug.sh
rm ${HOME}/restart-nginx.sh BASH_SCRIPTS_DIR="${DIR}/bash"
rm ${HOME}/mysql.sh
rm ${HOME}/enter-to-workspace.sh BASH_SCRIPTS=(ls $BASH_SCRIPTS_DIR)
for FILENAME in "${BASH_SCRIPTS[@]}"; do
ln -s ${BASH_SCRIPTS_DIR}/${FILENAME} ${HOME}/
done