X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fdev.sh;h=cc465cf9877aac24a10997ff52af1c0339df0766;hb=HEAD;hp=233830e7c5d79ba4f19abe71e151fb4f31cc3d1b;hpb=038469e73f651621e8a5c12cf089d0c239031b57;p=github%2Fwallabag%2Fwallabag.git diff --git a/scripts/dev.sh b/scripts/dev.sh old mode 100644 new mode 100755 index 233830e7..cc465cf9 --- a/scripts/dev.sh +++ b/scripts/dev.sh @@ -3,11 +3,18 @@ # eg: `sh dev.sh` COMPOSER_COMMAND='composer' +REQUIRE_FILE='scripts/require.sh' -DIR="${BASH_SOURCE}" -if [[ ! -d "$DIR" ]]; then DIR="$PWD/scripts"; fi -. "$DIR/require.sh" +if [ ! -f "$REQUIRE_FILE" ]; then + echo "Cannot find $REQUIRE_FILE" + exit 1 +fi + +. "$REQUIRE_FILE" $COMPOSER_COMMAND install -php bin/console wallabag:install -php bin/console server:run +if [ -z "$SKIP_WALLABAG_INITIALIZATION" ] +then + php bin/console wallabag:install +fi +php bin/console server:run $HOST