Skip to content

Commit b64c46b

Browse files
committed
adding the cura configuration
1 parent 2c6f3e2 commit b64c46b

2 files changed

Lines changed: 9 additions & 13 deletions

File tree

joinDomain.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,4 @@ else
6464
echo "gsettings set org.gnome.desktop.notifications show-banners false" >> /etc/skel/.bashrc
6565
fi
6666
cat /etc/resolv.conf
67-
exit 0
68-
## old cleanup section
69-
#sudo mkdir -p /etc/skel/snap/firefox/common/
70-
#sudo cp -r $SCRIPT/.mozilla/ /etc/skel/snap/firefox/common/
71-
sudo rm -rf /etc/skel/snap/firefox/
72-
cd /home/
73-
for d in */ ; do
74-
echo "Checking $d"
75-
#sudo rm -rf /home/$d/snap/firefox/
76-
done
67+

setupPackages.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,21 @@ if (! test -e $EXCEPTION_ZIP) then
138138
sudo unzip $EXCEPTION_ZIP -d /etc/skel/Arduino/tools/
139139
fi
140140

141-
141+
sudo mkdir -p /etc/skel/.config
142+
sudo cp -r $SCRIPT/.config/cura/ /etc/skel/.config/
142143

143144
cd /home/
144145
for d in */ ; do
145146
TRIMMED=$(basename $d);
146147
echo "Checking $TRIMMED"
147-
sudo mkdir -P /home/$TRIMMED/Arduino/tools/EspExceptionDecoder/tool/
148+
sudo mkdir -p /home/$TRIMMED/Arduino/tools/EspExceptionDecoder/tool/
148149
sudo cp /etc/skel/Arduino/tools/EspExceptionDecoder/tool/EspExceptionDecoder.jar /home/$TRIMMED/Arduino/tools/EspExceptionDecoder/tool/
149150
sudo chown -R $TRIMMED:$TRIMMED /home/$TRIMMED/Arduino/tools/
150-
#sudo rm -rf /home/$d/snap/firefox/
151+
if (! test -d $SCRIPT/.config/cura/) then
152+
echo "Updating cura config for $TRIMMED"
153+
sudo cp -r $SCRIPT/.config/cura/ /home/$TRIMMED/.config/
154+
sudo chown -R $TRIMMED:$TRIMMED /home/$TRIMMED/.config/cura/
155+
fi
151156
done
152157

153158

0 commit comments

Comments
 (0)