zipusyan commited on
Commit
3838239
·
verified ·
1 Parent(s): 09e6030

Delete entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +0 -35
entrypoint.sh DELETED
@@ -1,35 +0,0 @@
1
- #!/bin/bash
2
- set -e
3
-
4
- PHP_WWW_DIR="/home/www"
5
- OP_DATA_DIR="/home/www/opencode"
6
- OP_CONFIG_DIR="/root/.opencode"
7
- OP_BACKUP_DIR="/app/defaults/opencode"
8
-
9
- echo "--- Starting Runtime Initialization ---"
10
-
11
- mkdir -p /run/php /var/cache/nginx /var/log/nginx
12
- mkdir -p /tmp/nginx_body /tmp/nginx_proxy /tmp/nginx_fastcgi /tmp/nginx_uwsgi /tmp/nginx_scgi
13
- chown -R root:root /var/cache/nginx /var/log/nginx
14
-
15
- if [ ! -f "$PHP_WWW_DIR/ftp.php" ]; then
16
- mkdir -p "$PHP_WWW_DIR"
17
- cp -r /app/defaults/www/* "$PHP_WWW_DIR/"
18
- fi
19
- chown -R www-data:www-data "$PHP_WWW_DIR"
20
- chmod -R 755 "$PHP_WWW_DIR"
21
-
22
- mkdir -p "$OP_DATA_DIR"
23
- if [ ! -d "$OP_DATA_DIR/.opencode" ]; then
24
- cp -r "$OP_BACKUP_DIR/.opencode" "$OP_DATA_DIR/"
25
- fi
26
-
27
- rm -rf "$OP_CONFIG_DIR"
28
- ln -s "$OP_DATA_DIR/.opencode" "$OP_CONFIG_DIR"
29
-
30
- echo "--- Testing Nginx Configuration ---"
31
- nginx -t 2>&1 || true
32
-
33
- echo "--- Starting Supervisor ---"
34
- exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
35
-