geek rescue kit Code
Brought to you by:
ctaf
#!/bin/sh
##
## ct-installuser.sh
## Login : <ctaf@ctaf-laptop>
## Started on Wed Feb 13 19:58:34 2008 GESTES Cedric
## $Id$
##
## Author(s):
## - GESTES Cedric <ctaf42@gmail.com>
##
## Copyright (C) 2008 GESTES Cedric
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##
prefix_ctafconf=/usr/share/ctafconf
install_ctafconf=~/.config/ctafconf
mkdir -p "${install_ctafconf}/perso"
if ! [ -e "${prefix_ctafconf}/bin" ]; then
ln -s "${prefix_ctafconf}/bin" "${install_ctafconf}"
fi
if ! [ -e "${prefix_ctafconf}/etc" ]; then
ln -s "${prefix_ctafconf}/etc" "${install_ctafconf}"
fi
if ! [ -e "${prefix_ctafconf}/VERSION" ]; then
ln -s "${prefix_ctafconf}/VERSION" "${install_ctafconf}"
fi
~/.ctafconf/bin/ct-installconf update