A few tweaks and updates to allow for packages to be excluded
This commit is contained in:
parent
b154e4a448
commit
b7f394a0e8
3 changed files with 9 additions and 4 deletions
|
@ -15,9 +15,9 @@ test.bash - Some file I was using to test something, you can ignore it
|
||||||
|
|
||||||
To add flatpak support for making it more usable for desktops. Also at one point create a custom replacement for makeself thats specific to this script.
|
To add flatpak support for making it more usable for desktops. Also at one point create a custom replacement for makeself thats specific to this script.
|
||||||
|
|
||||||
# Notes Oct 11 2023
|
# Notes Oct 29 2023
|
||||||
|
|
||||||
Well in a attempt to move my own VPS to another I teseted the script. Found a bug where apt didn't have needed permissions. Thats been fixed in the dev version. Now I need to find a way to handle packages that where installed manaully via a downloaded deb file. Aside from some form detection for manually installed packages.
|
I've been at it adding a few tweaks here or there. Trying to add a good system for exclusions to make things more protable. While the current version works great on say VPS running the same base image, its not so good on different ones. This is due to some packages perhaps having different names like kernel images, modules and headers. This also includes things installed from a single package file you downloaded that isn't in a repo. Technically not bugs, but I want more flexibility.
|
||||||
|
|
||||||
# Special Thanks
|
# Special Thanks
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,9 @@ function restore_config() {
|
||||||
cp -R etc/pacman.d /etc
|
cp -R etc/pacman.d /etc
|
||||||
cp pacman.conf /etc
|
cp pacman.conf /etc
|
||||||
pacman --noconfirm -Sy
|
pacman --noconfirm -Sy
|
||||||
|
if [ -f ./exclusions ]; then
|
||||||
|
exclusions # this runs exclusions
|
||||||
|
fi
|
||||||
pacman -S - < $aptpkgfile
|
pacman -S - < $aptpkgfile
|
||||||
# we should be set app wise now the configs
|
# we should be set app wise now the configs
|
||||||
cp -R etc/ /etc
|
cp -R etc/ /etc
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# set -x
|
# set -x # For debugging
|
||||||
|
set -eo pipefail # No -u that would just bother me
|
||||||
|
trap cleanup EXIT # A little more robust cleanup
|
||||||
|
|
||||||
if [ "$(id -u)" != "0" ]; then
|
if [ "$(id -u)" != "0" ]; then
|
||||||
echo "You should run this script as root"
|
echo "You should run this script as root"
|
||||||
|
@ -118,7 +120,7 @@ clear
|
||||||
case $selection in
|
case $selection in
|
||||||
1 ) clear ; copy_config ; press_enter ;;
|
1 ) clear ; copy_config ; press_enter ;;
|
||||||
2 ) clear ; menu_option_two ; press_enter ;;
|
2 ) clear ; menu_option_two ; press_enter ;;
|
||||||
0 ) clear ; cleanup ; exit ;;
|
0 ) clear ; exit ;;
|
||||||
* ) clear ; incorrect_selection ; press_enter ;;
|
* ) clear ; incorrect_selection ; press_enter ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue