Skip to content

Commit

Permalink
Provide missing input file.
Browse files Browse the repository at this point in the history
  • Loading branch information
ximon18 committed Nov 20, 2024
1 parent 8ba2eb1 commit 7954a49
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pkg/rpm/scriptlets-successor.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
post_install_script = '''
#!/bin/bash -e
FORCE=
if [ $1 -eq 2 ]; then
# Upgrade
FORCE=-f
fi
# Create symbolic link at same name as existing file installed by mytest package
ln -s ${FORCE} /usr/bin/successor /usr/bin/mytest
'''

post_uninstall_script = '''
#!/bin/bash -e
#RPM_SYSTEMD_MACROS#
if [ $1 -eq 0 ] ; then
# Uninstallation
# Remove symbolic links
rm -f /usr/bin/mytest
fi
'''

# Requires new enough cargo-generate-rpm.
post_trans_script = '''
echo TODO
'''

0 comments on commit 7954a49

Please sign in to comment.