diff options
author | yangyan <yangyanyj@chinamobile.com> | 2020-03-12 16:57:11 +0800 |
---|---|---|
committer | yangyan <yangyanyj@chinamobile.com> | 2020-03-12 16:57:29 +0800 |
commit | e1e33f410b870a7d4f44b1d4eab48cabe5f53d51 (patch) | |
tree | b23dfb7b21d4dcee35a5317bd2313811c4b870d5 /mgr/docker | |
parent | cfc96a0e4d0408ab44a8c178619e85ce4079845c (diff) |
Optimize docker file of VFC-vnfmgr6.0.0-ONAPfrankfurt
Change-Id: Ib8f86c638cd1621a7de63bc04f42d4171e440602
Issue-ID: VFC-1647
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'mgr/docker')
-rwxr-xr-x | mgr/docker/docker-env-conf.sh | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/mgr/docker/docker-env-conf.sh b/mgr/docker/docker-env-conf.sh index 2cbe8ac..1f5e8f0 100755 --- a/mgr/docker/docker-env-conf.sh +++ b/mgr/docker/docker-env-conf.sh @@ -17,22 +17,18 @@ install_sf(){ add_user(){ - apk --no-cache add sudo addgroup -g 1000 -S onap adduser onap -D -G onap -u 1000 - chmod u+w /etc/sudoers - sed -i '/User privilege/a\\onap ALL=(ALL:ALL) NOPASSWD:ALL' /etc/sudoers - chmod u-x /etc/sudoers - sudo chown onap:onap -R /service + chown onap:onap -R /service } config_logdir(){ if [ ! -d "/var/log/onap" ]; then - sudo mkdir /var/log/onap + mkdir /var/log/onap fi - sudo chown onap:onap -R /var/log/onap + chown onap:onap -R /var/log/onap chmod g+s /var/log/onap } |