Skip to content
Snippets Groups Projects
Commit 082cb90f authored by Luis Guzmán's avatar Luis Guzmán Committed by Ruben Rodriguez
Browse files

gnome-online-accounts: avoid promote questionable online services via dconf

parent e7a8273a
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
VERSION=1
VERSION=2
. ./config
......@@ -34,6 +34,34 @@ sed '/0002-livepatch-auth.patch/d' -i debian/patches/series
sed '/--enable-ubuntu-sso/d' -i debian/rules
sed 's/--enable-foursquare \\/--enable-foursquare/' -i debian/rules
## Avoid promote questionable online services via dconf,
## still available for users who enable them.
#https://help.gnome.org/admin/system-admin-guide/stable/lockdown-online-accounts.html.en
cat << EO-GOA > debian/gnome-online-accounts.postinst
#!/bin/sh
# Customize services via dconf
mkdir -p /etc/dconf/db/local.d/ /etc/dconf/db/local.db/locks
cat << EOF > /etc/dconf/profile/user
user-db:user
system-db:local
EOF
cat << EOF > /etc/dconf/db/local.d/00-goa
[org/gnome/online-accounts]
whitelisted-providers= ['kerberos', 'owncloud', 'imap_smtp']
EOF
cat << EOF > /etc/dconf/db/local.db/locks/goa
# Lock the list of providers that are allowed to be loaded
/org/gnome/online-accounts/whitelisted-providers
EOF
dconf update
EO-GOA
changelog "Remove Snap build dependency"
compile
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment