mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-20 23:57:42 +01:00
9f13453d5f
Narrow down the scope of `chown` in adminserver because the /etc/adminserver/config/ is the location to store the config.json file. And /etc/adminserver/key should be readonly.
8 lines
242 B
Bash
8 lines
242 B
Bash
#!/bin/sh
|
|
|
|
#In the case when the config store is set to filesystem, the directory has to be writable.
|
|
if [ -d /etc/adminserver/config ]; then
|
|
chown -R 10000:10000 /etc/adminserver/config
|
|
fi
|
|
sudo -E -u \#10000 "/harbor/harbor_adminserver"
|