summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
9275a20)
Change-Id: I8368a55f0b4467c7aebb2ca977568686243dfddc
Issue-ID: MODELING-343
Signed-off-by: dyh <dengyuanhong@chinamobile.com>
-sudo chown onap:onap -R /service
-find /service -name '*.sh'|xargs chmod a+x
-
if [ -z "$SERVICE_IP" ]; then
export SERVICE_IP=`hostname -i`
fi
if [ -z "$SERVICE_IP" ]; then
export SERVICE_IP=`hostname -i`
fi
rm -rf modeling-etsicatalog.zip && \
pip install --upgrade setuptools pip && \
pip install --no-cache-dir --pre -r /service/modeling/etsicatalog/requirements.txt
rm -rf modeling-etsicatalog.zip && \
pip install --upgrade setuptools pip && \
pip install --no-cache-dir --pre -r /service/modeling/etsicatalog/requirements.txt
+ find /service -name '*.sh'|xargs chmod a+x
- apk --no-cache add sudo
addgroup -g 1000 -S onap && \
adduser onap -D -G onap -u 1000 && \
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
}
config_logdir(){
if [ ! -d "/var/log/onap" ]; then
- sudo mkdir /var/log/onap
- sudo chown onap:onap -R /var/log/onap
+ chown onap:onap -R /var/log/onap
chmod g+s /var/log/onap
}
chmod g+s /var/log/onap
}