You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
341 B
Bash
15 lines
341 B
Bash
#!/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 zzz-cdm-profile.sh /etc/profile.d/zzz-cdm-profile.sh
|
|
cp -Rf themes /usr/share/cdm/
|
|
fi
|