Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 16 lines (13 sloc) 541 Bytes
#!/usr/bin/env bash
[[ ! -z "$SUDO_USER" ]] && user=$SUDO_USER || user=$LOGNAME
if ! [ -d "/opt/cathook/data" ]; then
echo "Creating cathook data directory at /opt/cathook/data"
mkdir -p "/opt/cathook/data"
chown -R $user "/opt/cathook/data"
chmod -R 777 "/opt/cathook/data"
fi
echo "Installing cathook data to /opt/cathook/data"
rsync -avh --progress "data/" "/opt/cathook/data"
rsync -avh --ignore-existing --progress "config_data/" "/opt/cathook/data"
chown -R $user "/opt/cathook/data"
chmod -R 777 "/opt/cathook/data"
You can’t perform that action at this time.