docai / on_startup.sh
weaigc
init
8224768
raw
history blame
No virus
793 Bytes
#!/bin/bash
# Write some commands here that will run on root user before startup.
# For example, to clone transformers and install it in dev mode:
# git clone https://github.com/huggingface/transformers.git
# cd transformers && pip install -e ".[dev]"
npm i -g tsx tslab http-server miniflare@2 pm2
sudo chown -R 1000:1000 "/home/user/"
echo '
# >>> conda initialize >>>
__conda_setup="$(/home/user/miniconda/bin/conda shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/user/miniconda/etc/profile.d/conda.sh" ]; then
. "/home/user/miniconda/etc/profile.d/conda.sh"
else
export PATH="/home/user/miniconda/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
' >> ~/.bashrc
sudo chown -R 1000:1000 "/usr/"