mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-02 07:03:35 +01:00
0227a1315a
append chart server related config options to the supporting list of adminserver provide chart server related config access method in the API layer update prepare script and ui env template file to enable cache driver config for chart server API append flag info in the systeminfo API to indicate if chart server is deployed with Harbor refactor the response rewriting logic to return structual error object add api init method to initilizing objects required in API handlers chage owner of the storage folder update offline/online package scripts in Harbor-Util.robot
13 lines
325 B
Bash
13 lines
325 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
#/chart_storage is the directory in the contaienr for storing the chart artifacts
|
|
#if storage driver is set to 'local'
|
|
if [ -d /chart_storage ]; then
|
|
chown 10000:10000 -R /chart_storage
|
|
fi
|
|
|
|
# Start the server process
|
|
sudo -E -H -u \#10000 sh -c "/chartserver/chartm" #Parameters are set by ENV
|
|
set +e
|