aboutsummaryrefslogtreecommitdiffstats
path: root/system/deploy-system.sh
blob: a83415fd62eb5094d646828618fed9517e37168e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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