You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
calculate-overlay/profiles/templates/6_ac_desktop_profile/2-user/www-client/chromium-80/Default/02-install-floccus.sh

34 lines
1.2 KiB

# Calculate pkg(www-plugins/chrome-floccus)!= run=/bin/bash
plugin_id="fnaicdffflnofjppbagibeoednhnbjhg"
mkdir -p #-ur_home_path-#/.config/chromium/Default/Extensions/${plugin_id}
mkdir -p "#-ur_home_path-#/.config/chromium/Default/Local Extension Settings" &>/dev/null
cp -r /usr/share/chrome-floccus/* #-ur_home_path-#/.config/chromium/Default/Extensions/$plugin_id
/usr/share/chrome-floccus/configure.py #-ur_home_path-#/.config/chromium $plugin_id &>/dev/null <<EOF
{
"accounts": {
"accountId": {
"type": "nextcloud-bookmarks",
"url": "#-ini(user_credentials.nextcloud_url)-#",
"username": "#-ini(user_credentials.nextcloud_login)-#",
"password": "#-ini(user_credentials.nextcloud_pw)-#",
"serverRoot": "",
"includeCredentials": false,
"allowRedirects": false,
"allowNetwork": false,
"enabled": true,
"localRoot": "1",
"syncInterval": 15,
"strategy": "default",
"nestedSync": true
}
},
"currentVersion": "4.19.1"
}
EOF
chown #-ur_login-#:#-ur_group-# -R #-ur_home_path-#/.config/chromium/Default/Extensions
chown #-ur_login-#:#-ur_group-# -R "#-ur_home_path-#/.config/chromium/Default/Local Extension Settings"
exit 0