From: Winfried Kappeler Date: Fri, 29 Mar 2024 06:17:40 +0000 (+0100) Subject: V0.0.4 InitApp.sh improvements X-Git-Url: https://gitweb.hamatoma.de/?a=commitdiff_plain;h=4662c4e0e7f09816b50c1298928a4256cbbdc22b;p=worxer.git V0.0.4 InitApp.sh improvements - InitApp.sh improvements: LinkLaraknife --- diff --git a/CHANGELOG.md b/CHANGELOG.md index 19971ad..be39dfd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# V0.0.4 InitApp.sh improvements + +# Changed + +- InitApp.sh improvements: LinkLaraknife + # V0.0.3 InitApp.sh improvements ## Changed diff --git a/scripts/InitApp.sh b/scripts/InitApp.sh index ad8eb05..dce1e58 100755 --- a/scripts/InitApp.sh +++ b/scripts/InitApp.sh @@ -18,16 +18,13 @@ function CreateStorage(){ fi } function LinkLaraknife(){ - if [ ! -L vendor/hamatoma/laraknife ]; then - mkdir -p vendor/hamatoma - ln -sv ../../../laraknife vendor/hamatoma - fi + mkdir -p vendor/hamatoma + ln -sv ../../../laraknife vendor/hamatoma } function DoIt(){ # get DEV_USER . .dev.user apt update && apt install composer npm - LinkLaraknife CreateStorage Wait chown -R $DEV_USER:www-data bootstrap/cache @@ -42,6 +39,10 @@ function DoIt(){ sudo -u $DEV_USER npm run build echo "see .lrv.credential for first login" } +if [ ! -L vendor/hamatoma/laraknife ]; then + LinkLaraknife +fi + if [ ! -d ../laraknife ]; then echo "+++ missing ../laraknife" echo "cd .. ; git clone git@github.com:hamatoma/laraknife.git"