Skip to content

Commit

Permalink
postinst and prerm fixes
Browse files Browse the repository at this point in the history
Signed-off-by: pSchlarb <[email protected]>
  • Loading branch information
pSchlarb authored and WadeBarnes committed Dec 7, 2022
1 parent 29341a9 commit e9da54f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/reuseable_build_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ jobs:
- name: Build Token Plugin deployment package
run: |
mkdir -p /tmp/build-output
fpm --input-type dir --output-type deb --name sovtoken --version $(./updateVersion.py --getVersion) --depends "indy-node(=${{ steps.node-version.outputs.nodeVersion }})" --verbose --no-python-dependencies --force sovtoken/
fpm --input-type dir --output-type deb --name sovtokenfees --version $(./updateVersion.py --getVersion) --depends "indy-node(=${{ steps.node-version.outputs.nodeVersion }})" --verbose --no-python-dependencies --force sovtokenfees/
fpm --input-type dir --output-type deb --name sovtoken --architecture amd64 --maintainer "Sovrin" --no-python-fix-name --version $(./updateVersion.py --getVersion) --depends "indy-node(=${{ steps.node-version.outputs.nodeVersion }})" --verbose --no-python-dependencies --after-install ./devops/build-scripts/focal/sovtoken/postinst --before-remove ./devops/build-scripts/focal/sovtoken/prerm --exclude "*.pyo" --exclude "*.pyc" --no-python-fix-dependencie --python-bin "/usr/bin/python3" --force sovtoken/
fpm --input-type dir --output-type deb --name sovtokenfees --architecture amd64 --maintainer "Sovrin" --no-python-fix-name --version $(./updateVersion.py --getVersion) --depends "indy-node(=${{ steps.node-version.outputs.nodeVersion }})" --verbose --no-python-dependencies --after-install ./devops/build-scripts/focal/sovtokenfees/postinst --before-remove ./devops/build-scripts/focal/sovtokenfees/prerm --exclude "*.pyo" --exclude "*.pyc" --no-python-fix-dependencie --python-bin "/usr/bin/python3" --force sovtokenfees/
mv ./*.deb /tmp/build-output
- name: Upload sovtoken-deb
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion devops/build-scripts/focal/sovtoken/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fi
# End automatically added section

INDY_CONFIG_PATH="/etc/indy/indy_config.py"
PLUGINS_SOURCE_PATH="/usr/local/lib/python3.8/dist-packages/sovtoken"
PLUGINS_SOURCE_PATH=$(python3 -c "import sovtoken as _; print(_.__path__[0])")

add_plugin_if_missing()
{
Expand Down
2 changes: 1 addition & 1 deletion devops/build-scripts/focal/sovtokenfees/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fi
# End automatically added section

INDY_CONFIG_PATH="/etc/indy/indy_config.py"
PLUGINS_SOURCE_PATH="/usr/local/lib/python3.8/dist-packages/sovtokenfees"
PLUGINS_SOURCE_PATH=$(python3 -c "import sovtokenfees as _; print(_.__path__[0])")

add_plugin_if_missing()
{
Expand Down

0 comments on commit e9da54f

Please sign in to comment.