fix gitpath
This commit is contained in:
@@ -58,9 +58,9 @@ case "$SECOND_PART" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
sqlite3 "/4server/data/contracts.db" <<SQL
|
#sqlite3 "/4server/data/contracts.db" <<SQL
|
||||||
DELETE FROM containers WHERE UUID='$UUID';
|
#DELETE FROM containers WHERE UUID='$UUID';
|
||||||
SQL
|
#SQL
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -63,6 +63,10 @@ echo "[DEBUG] Final Traefik label: $DOMAIN_LABEL"
|
|||||||
doas find "$BASEURL" -type d -exec chmod 777 {} \;
|
doas find "$BASEURL" -type d -exec chmod 777 {} \;
|
||||||
PORT=$((CONTAINERDBID + 2200))
|
PORT=$((CONTAINERDBID + 2200))
|
||||||
echo "PORT $PORT"
|
echo "PORT $PORT"
|
||||||
|
mkdir -p ${ETC_DIR}
|
||||||
|
echo "GITPATH ${ETC_DIR}gitpath"
|
||||||
|
touch ${ETC_DIR}gitpath
|
||||||
|
|
||||||
echo "git clone \"ssh://git@${UUID}.odoo4projects.com:${PORT}/git-server/repos/odoo.git\"" > "${ETC_DIR}/gitpath"
|
echo "git clone \"ssh://git@${UUID}.odoo4projects.com:${PORT}/git-server/repos/odoo.git\"" > "${ETC_DIR}/gitpath"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ docker run -d \
|
|||||||
-e GENERIC_TIMEZONE="UTC-3" \
|
-e GENERIC_TIMEZONE="UTC-3" \
|
||||||
-e N8N_CUSTOM_EXTENSIONS="/usr/local/share/n8n/custom" \
|
-e N8N_CUSTOM_EXTENSIONS="/usr/local/share/n8n/custom" \
|
||||||
-v "/4server/data/${UUID}/n8n:/home/node/.n8n" \
|
-v "/4server/data/${UUID}/n8n:/home/node/.n8n" \
|
||||||
-v "/4server/data/${UUID}/data:/data" \
|
-v "/4server/data/${UUID}/backup:/backup" \
|
||||||
--label "traefik.enable=true" \
|
--label "traefik.enable=true" \
|
||||||
--label "traefik.http.routers.${UUID}.rule=Host(\`${UUID}.odoo4projects.com\`)" \
|
--label "traefik.http.routers.${UUID}.rule=Host(\`${UUID}.odoo4projects.com\`)" \
|
||||||
--label "traefik.http.routers.${UUID}.entrypoints=web,websecure" \
|
--label "traefik.http.routers.${UUID}.entrypoints=web,websecure" \
|
||||||
|
|||||||
@@ -9,9 +9,15 @@ command_args=""
|
|||||||
pidfile="/run/${RC_SVCNAME}.pid"
|
pidfile="/run/${RC_SVCNAME}.pid"
|
||||||
command_background="yes"
|
command_background="yes"
|
||||||
|
|
||||||
|
directory="/4server"
|
||||||
|
command_user="root"
|
||||||
|
|
||||||
respawn_delay=5 # seconds to wait before restart
|
respawn_delay=5 # seconds to wait before restart
|
||||||
respawn_max=0 # 0 = unlimited restarts
|
respawn_max=0 # 0 = unlimited restarts
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Load environment variables if needed
|
# Load environment variables if needed
|
||||||
output_log="/4server/data/log/checkCalls.log"
|
output_log="/4server/data/log/checkCalls.log"
|
||||||
error_log="/4server/data/log/checkCalls.log"
|
error_log="/4server/data/log/checkCalls.log"
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ template templates/.profile /home/4server/.profile
|
|||||||
### PACKAGES
|
### PACKAGES
|
||||||
template templates/repositories /etc/apk/repositories
|
template templates/repositories /etc/apk/repositories
|
||||||
rex "doas apk update && doas apk upgrade"
|
rex "doas apk update && doas apk upgrade"
|
||||||
rex doas apk add linux-lts openssh ufw python3 build-base python3-dev linux-headers py3-pip gcc g++ musl-dev libffi-dev make jq rsync mc vim docker docker-compose htop linux-lts sqlite bash postgresql16-client
|
rex doas apk add iperf linux-lts openssh ufw python3 build-base python3-dev linux-headers py3-pip gcc g++ musl-dev libffi-dev make jq rsync mc vim docker docker-compose htop linux-lts sqlite bash postgresql16-client
|
||||||
|
|
||||||
rex doas pip install --root-user-action ignore --break-system-packages --no-cache-dir "uvicorn[standard]" fastapi pydantic psutil
|
rex doas pip install --root-user-action ignore --break-system-packages --no-cache-dir "uvicorn[standard]" fastapi pydantic psutil
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user