Updated installer stuff

This commit is contained in:
2016-12-31 01:43:07 +01:00
parent ab96d598fb
commit 2dce9e4e8b
3 changed files with 50 additions and 0 deletions

13
installer/install.sh Normal file
View File

@ -0,0 +1,13 @@
#!/bin/bash
echo "Installing hotfix executable..."
cp hotfix ~/bin/hotfix
echo "Fixing permissions..."
chmod +x ~/bin/hotfix
if [ -e ~/.hotfix.conf ]; then
echo "Configuration file ~/.hotfix.conf already exists"
else
echo "Installing configuration file..."
cp hotfix.conf ~/.hotfix.conf
fi

5
installer/message Normal file
View File

@ -0,0 +1,5 @@
This installer will put hotfix into the bin directory of the current user, ie. install it as ~/bin/hotfix. If the directory does not exist, it will be created.
Most Linux distributions will automatically add ~/bin to the path if it exists. If hotfix isn't callable from the command line after restarting your shell and/or rebooting, please consult the documentation.
Some basic aliases will be installed into ~/.hotfix.conf if the file doesn't already exist.