Commit 41702811 authored by Richard RANDRIATOAMANANA's avatar Richard RANDRIATOAMANANA 💬
Browse files

Update config.sh

parent d6758275
......@@ -8,10 +8,16 @@ APP_REPO="https://gitlab.univ-nantes.fr/liccia/marketplace/ubuntu-basic.git"
APP_DIR="/opt/liccia"
APP_GIT="${APP_DIR}/git/${APP_NAME}"
mkdir -p `dirname $APP_GIT` && chown ubuntu: `dirname $APP_DIR` && git clone ${APP_REPO} ${APP_GIT} && \
cd ${APP_GIT} && {
source profile_liccia.sh
source profile_funcs.sh
liccia_log INFO "start configuration process"
source install.sh
}
mkdir -p `dirname $APP_GIT` && chown ubuntu: `dirname $APP_DIR`
if [[ -d "$APP_GIT" ]]; then
cd ${APP_GIT} && {
git reset --hard HEAD
git pull
}
else
git clone $APP_REPO $APP_GIT && cd $APP_GIT
fi
source profile_liccia.sh
source profile_funcs.sh
liccia_log INFO "start configuration process"
source install.sh
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment