-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy_debian_matura
More file actions
31 lines (21 loc) · 942 Bytes
/
deploy_debian_matura
File metadata and controls
31 lines (21 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
. ./functions.sh
BASECOMP=deb10-test
DEBIAN_VERSION="bullseye"
INSTALL_APPS="codeblocks,g++,idle-python3.8,mariadb-server,xterm"
UEFI=true
configure_time
fix_hostname
set_block_devices
restore_ptable || exit 1
create_efi
install_debian
mount $DEVICE /mnt/hd
chroot /mnt/hd useradd -m -s /bin/bash -p $(openssl passwd -1 matura) matura
cp setup/config-mariadb-server-matura.sh /mnt/hd/usr/local/bin/
echo @reboot\ root\ /usr/local/bin/config-mariadb-server-matura.sh\ \&\&\ rm\ /usr/local/bin/config-mariadb-server-matura.sh > /mnt/hd/etc/cron.d/config-mariadb-server-matura
chmod a+x /mnt/hd/etc/cron.d/config-mariadb-server-matura
curl -L $(get_pycharm_ce_download_url) | tar zx -C /mnt/hd/opt/
cp setup/jetbrains-pycharm-ce.desktop /mnt/hd/usr/share/applications/jetbrains-pycharm-ce.desktop
sed -i -e 's/VERSION/'$(get_pycharm_ce_version)'/' /mnt/hd/usr/share/applications/jetbrains-pycharm-ce.desktop
umount /mnt/hd