aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-05-15 06:23:38 -0700
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-05-15 06:23:38 -0700
commit633caca8a409fb0685809082b7fc86d433d33f17 (patch)
treeefa6eb0454076be2d927af878f317b6c0ee731b7 /test/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh
parentd203820b7e2174bd34fc66c22cd89213d2934aa9 (diff)
Fix ftp dir permission in sftp-server container
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>
Diffstat (limited to 'test/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh')
-rwxr-xr-xtest/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh b/test/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh
index b1aa43749..1751d07c5 100755
--- a/test/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh
+++ b/test/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh
@@ -94,9 +94,6 @@ function compose(){
cd config
envsubst < vsftpd_ssl-TEMPLATE.conf > vsftpd_ssl.conf
cd -
-
- set_vsftpd_file_owner
-
}
function build_image(){
@@ -109,6 +106,8 @@ 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
}