Skip to content

Commit

Permalink
php dependency fix for multiflexi-api deb
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Dec 24, 2024
1 parent a03c066 commit ccae7c8
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions debian/multiflexi-api.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ set -e


if [ "$1" = "configure" ] ; then

# jq '.require += {"vitexsoftware/multiflexiapiserver": "*","dyorg/slim-token-authentication": "dev-master", "tuupola/slim-basic-auth": "^3.0"}' /usr/lib/multiflexi/composer.json > /usr/lib/multiflexi/composer.json.tmp
# jq '.autoload."psr-4" += {"MultiFlexi\\Api\\": "MultiFlexi/Api"}' /usr/lib/multiflexi/composer.json.tmp > /usr/lib/multiflexi/composer.json.tmp2
# jq '.repositories += [{"type":"path","url":"./OpenAPI/server/"}'] /usr/lib/multiflexi/composer.json.tmp2 > /usr/lib/multiflexi/composer.json.tmp3


# Add repository to the repositories section
jq '.repositories += [{
"type": "path",
Expand All @@ -22,18 +16,6 @@ if [ "$1" = "configure" ] ; then
# Add require deb/multiflexi-api in any version
jq '.require += {
"deb/multiflexi-api": "*",
"php-di/slim-bridge": "^3.4",
"slim/psr7": "^1.5",
"dyorg/slim-token-authentication": "dev-slim4",
"tuupola/slim-basic-auth": "^3.0"
}' /usr/lib/multiflexi/composer.json > /usr/lib/multiflexi/composer.json.tmp
mv /usr/lib/multiflexi/composer.json.tmp /usr/lib/multiflexi/composer.json

# Add require deb/multiflexi-api in any version
jq '.repositories += {
"type": "vcs",
"url": "https://github.com/ybelenko/slim-token-authentication",
"no-api": true
}' /usr/lib/multiflexi/composer.json > /usr/lib/multiflexi/composer.json.tmp
mv /usr/lib/multiflexi/composer.json.tmp /usr/lib/multiflexi/composer.json

Expand Down

0 comments on commit ccae7c8

Please sign in to comment.