refactor
This commit is contained in:
14
image/overlay/daemon/config.yaml
Normal file
14
image/overlay/daemon/config.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
address: ":_BUBBLE_SSH_PORT_"
|
||||
network-group: "workspace"
|
||||
server-key-file: "/etc/ssh/ssh_host_rsa_key"
|
||||
|
||||
workspace-parent: "/data/workspace"
|
||||
global-share-dir: "/data/share"
|
||||
auth-server: "http://localhost:8080/"
|
||||
|
||||
manager:
|
||||
address: "0.0.0.0:7684"
|
||||
|
||||
templates:
|
||||
".*":
|
||||
image: ""
|
||||
@@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
# VARIABLES: _REVISION_ _REPO_
|
||||
|
||||
set -euo pipefail
|
||||
mkdir -p /users && chown keeper /users && chmod 644 /users
|
||||
|
||||
init_repo(){
|
||||
su - keeper 'git clone -b _REVISION_ _REPO_ /users'
|
||||
}
|
||||
|
||||
if [[ ! -d /users/.git ]]; then
|
||||
init_repo
|
||||
elif [[ -d /users && cd /users && ! su - keeper 'git pull origin _REVISION_' ]]; then
|
||||
init_repo
|
||||
fi
|
||||
Reference in New Issue
Block a user