Skip to content
Snippets Groups Projects
Commit a2f70147 authored by Bob Mottram's avatar Bob Mottram
Browse files

Improve the update command

parent e0c30a3e
No related branches found
No related tags found
No related merge requests found
......@@ -28,20 +28,24 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
FREEDOMBONE_REPO="https://github.com/bashrc/freedombone"
PROJECT_NAME='freedombone'
FREEDOMBONE_REPO="https://github.com/bashrc/${PROJECT_NAME}"
update-ca-certificates
if [ ! -d /root/freedombone ]; then
echo " git clone $FREEDOMBONE_REPO /root/freedombone"
if [ ! -d /root/${PROJECT_NAME} ]; then
git clone $FREEDOMBONE_REPO /root/${PROJECT_NAME}
fi
if [ -f /root/freedombone.cfg ]; then
cd /root/freedombone
git stash
git pull
make install
freedombone -c /root/freedombone.cfg
if [ -d /root/${PROJECT_NAME} ]; then
if [ -f /root/${PROJECT_NAME}.cfg ]; then
cd /root/${PROJECT_NAME}
git stash
git pull
make install
${PROJECT_NAME} -c /root/${PROJECT_NAME}.cfg
fi
fi
echo '
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment