File tree Expand file tree Collapse file tree 10 files changed +12
-15
lines changed
common/management/commands/services Expand file tree Collapse file tree 10 files changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Issue Close Check
22
33on :
44 issues :
5- types : [closed]
5+ types : [ closed ]
66
77jobs :
88 issue-close-remove-labels :
Original file line number Diff line number Diff line change 11on :
22 issue_comment :
3- types : [created]
3+ types : [ created ]
44
55name : Add issues workflow labels
66
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Issue Open Check
22
33on :
44 issues :
5- types : [opened]
5+ types : [ opened ]
66
77jobs :
88 issue-open-add-labels :
Original file line number Diff line number Diff line change 77upload /*
88common /utils /ip /geoip /GeoLite2-City.mmdb
99common /utils /ip /ipip /ipipfree.ipdb
10+ config.yml
Original file line number Diff line number Diff line change @@ -11,9 +11,6 @@ RUN echo > config.yml \
1111 sed -i "s@VERSION = .*@VERSION = '${VERSION}'@g" server/const.py; \
1212 fi
1313
14- RUN set -ex \
15- && export SECRET_KEY=$(head -c100 < /dev/urandom | base64 | tr -dc A-Za-z0-9 | head -c 48)
16-
1714FROM python:3.12.7-slim
1815
1916ENV LANG=en_US.UTF-8 \
Original file line number Diff line number Diff line change 3434DEBUG = CONFIG .DEBUG or False
3535APPS_DIR = settings .BASE_DIR
3636LOG_DIR = os .path .join (APPS_DIR , 'data' , 'logs' )
37- TMP_DIR = os .path .join (APPS_DIR , 'data' , ' tmp' )
37+ TMP_DIR = os .path .join (APPS_DIR , 'tmp' )
3838
3939
4040def check_port_is_used ():
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ service="${2-all}"
1313
1414trap cleanup EXIT
1515
16- rm -f logs /tmp/* .pid
16+ rm -f /data/xadmin-server /tmp/* .pid
1717
1818if [[ " ${action: 0: 1} " == " /" ]]; then
1919 " $@ "
Original file line number Diff line number Diff line change 88
99PROJECT_DIR = os .path .dirname (os .path .dirname (os .path .abspath (__file__ )))
1010LOG_DIR = os .path .join (PROJECT_DIR , "data" , "logs" )
11- TMP_DIR = os .path .join (PROJECT_DIR , "data" , " tmp" )
11+ TMP_DIR = os .path .join (PROJECT_DIR , "tmp" )
1212CELERY_LOG_DIR = os .path .join (LOG_DIR , "task" )
13- VERSION = '5.0 .0'
13+ VERSION = '4.2 .0'
1414CONFIG = ConfigManager .load_user_config ()
File renamed without changes.
Original file line number Diff line number Diff line change @@ -50,12 +50,15 @@ function check_docker_start() {
5050function check_permission() {
5151 project_parent_dir=$( dirname " ${PROJECT_DIR} " )
5252 mkdir -p " ${project_parent_dir} " /xadmin-mariadb/{data,logs}
53- if [ " $( stat -c %u logs) " -ne " 1001" ] ; then
53+ if [ " $( stat -c %u data/ logs) " -ne " 1001" ] ; then
5454 chown 1001.1001 -R " ${project_parent_dir} " /xadmin-mariadb/{data,logs}
5555 chown 1001.1001 -R " ${project_parent_dir} " /xadmin-server/*
5656 fi
5757}
5858
59+ function pull_images() {
60+ bash " ${PROJECT_DIR} /utils/pull_docker_images.sh"
61+ }
5962
6063EXE=" "
6164
@@ -91,10 +94,6 @@ function restart() {
9194 start
9295}
9396
94- function pull_images() {
95- bash " ${PROJECT_DIR} /utils/pull_docker_images.sh"
96- }
97-
9897function import_tzinfo() {
9998 if ${EXE} ps| grep xadmin-mariadb| grep healthy & > /dev/null; then
10099 docker exec -it xadmin-mariadb sh -c ' mariadb-tzinfo-to-sql /usr/share/zoneinfo | mariadb -u root mysql && echo "import tzinfo success"'
You can’t perform that action at this time.
0 commit comments