save point

This commit is contained in:
Paul M 2023-10-02 20:53:01 -05:00
parent 6b681df935
commit 8f893d246e
3 changed files with 19 additions and 4 deletions

View file

@ -1,5 +1,7 @@
#!/bin/bash
set -x
if [ "$(id -u)" != "0" ]; then
echo "You should run this script as root"
sleep 3
@ -7,8 +9,8 @@ if [ "$(id -u)" != "0" ]; then
fi
# Check the OS, it sets a env variable as a result
./os_probe.bash
./check.bash
source ./os_probe.bash
source ./check.bash
# Some menu things
@ -46,6 +48,7 @@ function copy_config() {
tmpdir=$(mktemp -d)
echo $tmpdir
cp -r /etc/ $tmpdir
# if [${osp} = "Debian"]; then
dpkg --get-selections > $tmpdir/installed_packages
arcdir=$(mktemp -d)
echo $arcdir