From 4662c4e0e7f09816b50c1298928a4256cbbdc22b Mon Sep 17 00:00:00 2001 From: Winfried Kappeler Date: Fri, 29 Mar 2024 07:17:40 +0100 Subject: [PATCH] V0.0.4 InitApp.sh improvements - InitApp.sh improvements: LinkLaraknife --- CHANGELOG.md | 6 ++++++ scripts/InitApp.sh | 11 ++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) 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" -- 2.39.5