mirror of
https://github.com/vhaudiquet/mymachine.git
synced 2025-12-18 12:06:06 +00:00
Fix small issues
This commit is contained in:
@@ -1,14 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
disable_unwanted_extensions() {
|
|
||||||
# Disable default Ubuntu gnome extensions
|
|
||||||
sudo -u ${USERNAME} gnome-extensions disable ding@rastersoft.com # Desktop Icons
|
|
||||||
}
|
|
||||||
|
|
||||||
WHEEL_GROUP="sudo"
|
WHEEL_GROUP="sudo"
|
||||||
|
|
||||||
disable_unwanted_extensions
|
|
||||||
|
|
||||||
# Enable docker IPv4 forwarding, to allow LXD to work along it :)
|
# Enable docker IPv4 forwarding, to allow LXD to work along it :)
|
||||||
echo "net.ipv4.conf.all.forwarding=1" > /etc/sysctl.d/99-forwarding.conf
|
echo "net.ipv4.conf.all.forwarding=1" > /etc/sysctl.d/99-forwarding.conf
|
||||||
sysctl net.ipv4.conf.all.forwarding=1 >/dev/null 2>&1
|
sysctl net.ipv4.conf.all.forwarding=1 >/dev/null 2>&1
|
||||||
|
|||||||
@@ -207,6 +207,11 @@ extra_init() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
extra_finish() {
|
disable_unwanted_extensions() {
|
||||||
echo -ne ""
|
# Disable default Ubuntu gnome extensions
|
||||||
|
sudo -u ${USERNAME} gnome-extensions disable ding@rastersoft.com # Desktop Icons
|
||||||
|
}
|
||||||
|
|
||||||
|
extra_finish() {
|
||||||
|
disable_unwanted_extensions
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,13 +6,15 @@ install_dotfile_ifnot() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo "Installing dotfiles..."
|
echo "Installing dotfiles..."
|
||||||
# cp -r --update=none ${script_dir}/dotfiles/. /home/${USERNAME}/
|
sudo -u ${USERNAME} mkdir -p /home/${USERNAME}/.config/git
|
||||||
cat ${script_dir}/dotfiles/.config/git/config | envsubst '$GIT_USER $EMAIL' >/home/${USERNAME}/.config/git/config
|
cat ${script_dir}/dotfiles/.config/git/config | envsubst '$GIT_USER $EMAIL' >/home/${USERNAME}/.config/git/config
|
||||||
|
chown ${USERNAME}:${USERNAME} /home/${USERNAME}/.config/git/config
|
||||||
|
|
||||||
# Install bashrc if not mymachine-installed
|
# Install bashrc if not mymachine-installed
|
||||||
if ! [[ "$(head -n 1 /home/${USERNAME}/.bashrc)" = "# mymachine" ]]; then
|
if ! [[ "$(head -n 1 /home/${USERNAME}/.bashrc)" = "# mymachine" ]]; then
|
||||||
sudo -u ${USERNAME} cp "${script_dir}/dotfiles/.bashrc" "/home/${USERNAME}/.bashrc"
|
sudo -u ${USERNAME} cp "${script_dir}/dotfiles/.bashrc" "/home/${USERNAME}/.bashrc"
|
||||||
fi
|
fi
|
||||||
|
install_dotfile_ifnot .config/prompt.sh
|
||||||
|
|
||||||
# Install code settings depending on which code is installed
|
# Install code settings depending on which code is installed
|
||||||
CODE_NAME="Code - OSS"
|
CODE_NAME="Code - OSS"
|
||||||
|
|||||||
Reference in New Issue
Block a user