From 7999b9ad79a5aba6b12be73a938c823fc5b329e8 Mon Sep 17 00:00:00 2001 From: Spacedio Date: Sun, 24 May 2026 21:07:04 -0400 Subject: Reorganization of files. --- system/deploy-system.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 system/deploy-system.sh (limited to 'system/deploy-system.sh') diff --git a/system/deploy-system.sh b/system/deploy-system.sh new file mode 100755 index 0000000..a83415f --- /dev/null +++ b/system/deploy-system.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +# Define paths (Relative to script location) +DOT_BIN="./usr/" +DOT_ETC="./etc/" + +# Check for root +if [ "$EUID" -ne 0 ]; then + echo "Please run as root (sudo ./deploy.sh)" + exit +fi + +echo "Deploying system scripts..." +rsync -avh --dry-run --chmod=D755,F755 --chown=root:root "$DOT_BIN" /usr/local/bin/ + +echo "Deploying etc configs..." +rsync -avh --dry-run --chmod=D755,F644 --chown=root:root "$DOT_ETC" /etc/ + +#echo "Reloading services..." +#udevadm control --reload-rules && udevadm trigger +# Add other reloads here as needed -- cgit v1.2.3