diff options
| author | Spacedio <spacedio@thernusen.net> | 2026-05-24 21:07:04 -0400 |
|---|---|---|
| committer | Spacedio <spacedio@thernusen.net> | 2026-05-24 21:07:04 -0400 |
| commit | 7999b9ad79a5aba6b12be73a938c823fc5b329e8 (patch) | |
| tree | 35fab2c4b53b498c22bb0b701957f67d52366354 /system/deploy-system.sh | |
| parent | a82c20fbc2d736cba174502fccbcba648ce978e9 (diff) | |
| download | dotfiles-7999b9ad79a5aba6b12be73a938c823fc5b329e8.tar.gz | |
Reorganization of files.
Diffstat (limited to 'system/deploy-system.sh')
| -rwxr-xr-x | system/deploy-system.sh | 21 |
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 |
