Files
fedora-OEMDRV/system_setup/create_nc_package_from_sys_config.sh
Daniel Pätzold 264d1d4931 Different behaviour of "sudo -l" checks
Better shebangs
2026-03-16 11:53:31 +01:00

14 lines
437 B
Bash
Executable File

#!/usr/bin/env sh
source $(dirname "$0")/setup_system.inc.sh
mkdir -p ${HOME}/temp
cd ${SYSCONFIGPATH}
tar --exclude='.*' -I 'zstd -9' -cf ${HOME}/temp/sys_config.tar.zst ${SYSCONFIGPATH}
if [ $? -eq 0 ]; then
echo "Archive of ${SYSCONFIGPATH} has been written to ~/temp/sys_config.tar.zst"
else
echo "Some Errors occured, quit"
fi
# TODO
# - up file to NC - is only possible, when setup already has the webdav-token created
#