Skip to content

Commit

Permalink
Create user after writing workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
robballantyne committed Feb 1, 2024
1 parent 198afa1 commit 99344bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/COPY_ROOT/opt/ai-dock/bin/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ function init_main() {
init_set_web_credentials
init_direct_address
init_set_workspace
init_create_user
init_count_gpus
init_count_quicktunnels
init_set_cf_tunnel_wanted
touch /run/container_config
touch /run/workspace_sync
init_write_environment
init_create_user
# Allow autostart processes to run early
supervisord -c /etc/supervisor/supervisord.conf &
# Redirect output to files - Logtail will now handle
Expand All @@ -51,13 +51,13 @@ init_serverless() {
export CF_QUICK_TUNNELS_COUNT=0
export SUPERVISOR_START_CLOUDFLARED=0
init_set_workspace
init_create_user
init_count_gpus
init_create_directories
init_create_logfiles
touch /run/container_config
touch /run/workspace_sync
init_write_environment
init_create_user
init_sync_mamba_envs > /var/log/sync.log 2>&1
init_sync_opt >> /var/log/sync.log 2>&1
rm /run/workspace_sync
Expand Down

0 comments on commit 99344bc

Please sign in to comment.