cdm/install
2009-11-09 18:17:25 -06:00

17 lines
486 B
Bash
Executable File

#!/bin/bash
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root!"
exit 1
else
cd src
mkdir -p /usr/{bin,share/cdm}
install -m755 cdm /usr/bin/
install -Dm644 cdmrc /etc/cdmrc
install -m644 xinitrc /usr/share/cdm/
install -Dm755 cdm-profile.sh /etc/profile.d/cdm-profile.sh
cp -Rf themes /usr/share/cdm/
echo "CDM configuration is done through /etc/cdmrc"
echo "Replace ~/.xinitrc and ~/.bash_profile with the files in /usr/share/cdm/skel for each user."
fi