fix permission issue

This commit is contained in:
j3d1 2022-05-06 02:23:51 +02:00
parent 737f41734f
commit 19cc3dfbba

View file

@ -154,6 +154,8 @@ function second_stage(){
apt install -y gimp inkscape blender freecad kicad || true
btrfs subvolume snapshot / /snap/$(date +%Y-%m-%d_big_tools)
rsync -a /root/unbox_data/secrets/SSH/ ~jedi/.ssh/
chown -R jedi:jedi ~jedi/
chsh --shell /usr/bin/zsh jedi
echo second_stage done
@ -166,7 +168,6 @@ function second_stage(){
function user_install(){
set -e
export HOME=~jedi/
export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i/home/jedi/.ssh/id_rsa"
@ -175,7 +176,10 @@ function user_install(){
dbus-launch dconf write /org/mate/desktop/interface/gtk-theme "'Materia-dark'" || true
dbus-launch dconf write /org/mate/marco/general/theme "'Materia-dark'" || true
dbus-launch dconf write /org/mate/desktop/interface/icon-theme "'Adwaita'" || true
dbus-launch dconf write /org/mate/desktop/peripherals/mouse/cursor-theme "'Adwaita'" || true
dbus-launch dconf write /org/mate/desktop/peripherals/mouse/cursor-theme "'Adwaita'" || true
export HOME=~jedi/
cd
@ -183,11 +187,8 @@ function user_install(){
chmod 0755 $HOME/.oh-my-zsh
chown -R jedi:jedi $HOME
rsync -a /root/unbox_data/secrets/SSH/ /home/jedi/.ssh/
git clone ssh://git@git.neulandlabor.de:2222/j3d1/laptop_tools.git Tools
echo $?
TOOLBOX_LINK=$(wget "https://data.services.jetbrains.com/products/releases?code=TBA&latest=true" -O - 2>/dev/null | jq -r ".TBA[0].downloads.linux.link")