DistroHopper/config/1stRun.sh

30 lines
580 B
Bash
Raw Normal View History

2023-03-13 16:18:19 +00:00
#!/bin/bash
source distrohopper.conf
# distrohopper first run
CONFIG_DIR="$HOME/.config/distrohopper"
# create default dirs
2023-03-18 13:53:27 +00:00
mkdir -p "$CONFIG_DIR"
sudo mkdir -p "$ICON_DIR"
2023-03-13 16:18:19 +00:00
# copy everything to config dir
cp -r * "$CONFIG_DIR/"
2023-03-18 13:53:27 +00:00
# move icons
sudo mv "$CONFIG_DIR/icons/"* "$ICON_DIR/"
rm -r "$CONFIG_DIR/icons"
2023-03-13 16:18:19 +00:00
# install prerequisities (Void linux)
# Install distrohopper to all users
2023-03-18 13:53:27 +00:00
sudo cp ../dh ../quickget ../quickemu ../macrecovery ../windowskey /usr/bin/
2023-03-13 16:18:19 +00:00
# Set VMs dir
2023-03-18 17:13:26 +00:00
"$CONFIG_DIR/set_dir.sh"
2023-03-13 16:18:19 +00:00
2023-03-19 22:54:17 +00:00
source distrohopper.conf
# Renew VMs
"$CONFIG_DIR/renew.sh"
2023-03-13 16:18:19 +00:00
echo "Done"