linux - RPM Post Install Execute with Python -
i'm working on deployment process work , have run bit of snag. more of quality of life thing else. i've been following hynek schlawack's excellent guide , have gotten pretty far. long , short of i'm trying install python application along deployment of python version i'm using. i'm using fpm build rpm sent , installed site. as part of deployment, i'd run post-install scripts. can specify in fpm using "--post-install {script_name}" works , when script actual linux script. however, i'd run python script post-install. can specify executable python script, fails because believe trying execute script as: bash my_python_script.py does know if there way execute python script post-install of rpm? thanks in advance! in spec file can specify interpreter %post script using -p parameter, e.g. %post -p /usr/bin/perl .