Skip to content

Commit c5e3a0d

Browse files
committed
do not mount www&ftp data
1 parent e768e01 commit c5e3a0d

3 files changed

Lines changed: 5 additions & 13 deletions

File tree

additional-modules/storage/entrypoint.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,11 @@ chown -R ceph:ceph /var/lib/ceph/radosgw
113113
# start Apache and vsftpd (/var/www/html and /srv/ftp are volume bindings from start_ocean.sh)
114114
##
115115
echo "starting apache2 and vsftpd..."
116-
# Host dirs are created by root in start_ocean.sh; set broad perms so www-data and FTP user can write
116+
# Host dirs are created by root ; set broad perms so www-data and FTP user can write
117+
mkdir -p /var/www/html
118+
mkdir -p /srv/ftp
117119
chmod 777 /var/www/html 2>/dev/null || true
120+
chmod 777 /srv 2>/dev/null || true
118121
chmod 777 /srv/ftp 2>/dev/null || true
119122
# Create FTP user if missing, set password from env
120123
if ! id -u "$FTP_USER" >/dev/null 2>&1; then

compose-files/storage.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,4 @@ services:
1919
FTP_PASS: "${FTP_PASS:-ftppass}"
2020
networks:
2121
ocean_backend:
22-
ipv4_address: 172.15.0.7
23-
volumes:
24-
# OCEAN_WWW_FOLDER, OCEAN_FTP_FOLDER set in start_ocean.sh (e.g. ~/.ocean/storage-www, ~/.ocean/storage-ftp)
25-
- ${OCEAN_WWW_FOLDER}:/var/www/html
26-
- ${OCEAN_FTP_FOLDER}:/srv/ftp
22+
ipv4_address: 172.15.0.7

start_ocean.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,6 @@ mkdir -p ${OCEAN_CERTS_FOLDER}
7474
# copy certs
7575
cp -r ./certs/* ${OCEAN_CERTS_FOLDER}
7676

77-
#www folder
78-
export OCEAN_WWW_FOLDER="${OCEAN_HOME}/storage-www/"
79-
mkdir -p ${OCEAN_WWW_FOLDER}
80-
#ftp folder
81-
export OCEAN_FTP_FOLDER="${OCEAN_HOME}/storage-ftp/"
82-
mkdir -p ${OCEAN_FTP_FOLDER}
83-
chmod 777 ${OCEAN_FTP_FOLDER}
8477
# FTP local user (no anonymous); set FTP_USER/FTP_PASS to override
8578
export FTP_USER="${FTP_USER:-ftpuser}"
8679
export FTP_PASS="${FTP_PASS:-ftppass}"

0 commit comments

Comments
 (0)