Improve the update command
This commit is contained in:
parent
e0c30a3e25
commit
a2f70147de
|
@ -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 '
|
||||
|
|
Loading…
Reference in New Issue