Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(766)

Unified Diff: cloud_print/virtual_driver/posix/linux_packaging/postinst

Issue 7599018: Code to package Cloud Print Linux and Mac virtual drivers. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Style fix. Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cloud_print/virtual_driver/posix/linux_packaging/postinst
diff --git a/cloud_print/virtual_driver/posix/linux_packaging/postinst b/cloud_print/virtual_driver/posix/linux_packaging/postinst
new file mode 100755
index 0000000000000000000000000000000000000000..ca80aec6ecbb496d79ce2adbb9e6992d6ee2aff5
--- /dev/null
+++ b/cloud_print/virtual_driver/posix/linux_packaging/postinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -e
+chown root:root /usr/lib/cups/backend/GCP-driver
+chmod 0700 /usr/lib/cups/backend/GCP-driver
+chown root:root /usr/share/ppd/GCP
+chmod 755 /usr/share/ppd/GCP
+chown root:root /usr/share/ppd/GCP/GCP-driver.ppd
+chmod 644 /usr/share/ppd/GCP/GCP-driver.ppd
+invoke-rc.d cups restart
+lpadmin -p Google-Cloud-Print -E -P /usr/share/ppd/GCP/GCP-driver.ppd \
+ -D "Google Cloud Print" -o printer-is-shared=false -v GCP-driver:/

Powered by Google App Engine
This is Rietveld 408576698