jetbrains
This commit is contained in:
parent
96da07dadb
commit
d0db77c036
1 changed files with 42 additions and 25 deletions
17
entry.sh
17
entry.sh
|
@ -1,5 +1,19 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
function user_install(){
|
||||||
|
wget --show-progress -qO ./toolbox.tar.gz https://download.jetbrains.com/toolbox/jetbrains-toolbox-1.20.7940.tar.gz
|
||||||
|
|
||||||
|
TOOLBOX_TEMP_DIR=$(mktemp -d)
|
||||||
|
|
||||||
|
tar -C "$TOOLBOX_TEMP_DIR" -xf toolbox.tar.gz
|
||||||
|
rm ./toolbox.tar.gz
|
||||||
|
|
||||||
|
"$TOOLBOX_TEMP_DIR"/*/jetbrains-toolbox
|
||||||
|
|
||||||
|
rm -r "$TOOLBOX_TEMP_DIR"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function first_stage(){
|
function first_stage(){
|
||||||
set -e
|
set -e
|
||||||
|
@ -143,6 +157,9 @@ function second_stage(){
|
||||||
chown -R jedi:jedi $HOME
|
chown -R jedi:jedi $HOME
|
||||||
chsh --shell /bin/zsh jedi
|
chsh --shell /bin/zsh jedi
|
||||||
|
|
||||||
|
export -f user_install
|
||||||
|
su jedi -c "bash -c user_install"
|
||||||
|
|
||||||
echo second_stage done
|
echo second_stage done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue