Permalink
Browse files

Fixed deb postinstall to fix backend python path

  • Loading branch information...
simoncadman committed Dec 12, 2012
1 parent bb865ab commit 1f89c7febc720fa772ae92920a73fa254f2d5de4
Showing with 2 additions and 1 deletion.
  1. +2 −1 packages/debian/postinst
View
@@ -25,6 +25,7 @@ if [[ ! -f /usr/bin/python2 ]]; then
if [[ $pyversion != "" ]]; then
sed -i "1 s/\/usr\/bin\/env python2$/\/usr\/bin\/env $pyversion/" /usr/lib/cloudprint-cups/{backend.py,listcloudprinters.py,setupcloudprint.py,submitjob.py,upgrade.py}
+ sed -i "1 s/\/usr\/bin\/env python2$/\/usr\/bin\/env $pyversion/" /usr/lib/cups/backend/cloudprint
fi
fi
@@ -33,4 +34,4 @@ chown root:lp /var/log/cups/cloudprint_log
chmod 660 /var/log/cups/cloudprint_log
chown root:root /usr/lib/cups/backend/cloudprint
chmod 700 /usr/lib/cups/backend/cloudprint
-/usr/lib/cloudprint-cups/upgrade.py
+/usr/lib/cloudprint-cups/upgrade.py

0 comments on commit 1f89c7f

Please sign in to comment.