jetbrains
This commit is contained in:
parent
96da07dadb
commit
d0db77c036
1 changed files with 42 additions and 25 deletions
23
entry.sh
23
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,13 +157,16 @@ 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function post_install_stage(){
|
function post_install_stage(){
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
mount | grep target | awk '{print $3}'| sort -r | while read LINE; do
|
mount | grep target | awk '{print $3}'| sort -r | while read LINE; do
|
||||||
umount -l $LINE;
|
umount -l $LINE;
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue