aboutsummaryrefslogtreecommitdiffstats
path: root/system/deploy-system.sh
diff options
context:
space:
mode:
authorSpacedio <spacedio@thernusen.net>2026-05-24 21:07:04 -0400
committerSpacedio <spacedio@thernusen.net>2026-05-24 21:07:04 -0400
commit7999b9ad79a5aba6b12be73a938c823fc5b329e8 (patch)
tree35fab2c4b53b498c22bb0b701957f67d52366354 /system/deploy-system.sh
parenta82c20fbc2d736cba174502fccbcba648ce978e9 (diff)
downloaddotfiles-7999b9ad79a5aba6b12be73a938c823fc5b329e8.tar.gz
Reorganization of files.
Diffstat (limited to 'system/deploy-system.sh')
-rwxr-xr-xsystem/deploy-system.sh21
1 files changed, 21 insertions, 0 deletions
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