Container entrypoint descendant script in atmoz/sftp:alpine image
is changing mount binded ftp dir owner to 'root' which makes
removing it by 'clean' action not possible hence adding o+w
permission for it.
Change-Id: I0d9339db80c4cd8e31c4368ac63741c531a626fa
Issue-ID: INT-1577
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
- "${PORTSFTP}:22"
volumes:
- ./files/onap/:/home/onap/
+ - ./fix-sftp-perms.sh:/etc/sftp.d/fix-sftp-perms.sh
restart: on-failure
command: onap:pano:1001
--- /dev/null
+#!/bin/bash
+chmod o+w /home/onap
cd config
envsubst < vsftpd_ssl-TEMPLATE.conf > vsftpd_ssl.conf
cd -
-
- set_vsftpd_file_owner
-
}
function build_image(){
}
function set_vsftpd_file_owner() {
+ # This is to avoid "500 OOPS: cannot open config file"
+ # on vsftpd daemon start
sudo chown root ./config/vsftpd_ssl.conf
}