Enable profile-sync-daemon on desktop images

This commit is contained in:
Thomas Kaiser 2017-05-21 17:59:07 +02:00
parent 2461886382
commit 92dbd66b33
2 changed files with 4 additions and 4 deletions

View file

@ -120,7 +120,7 @@ PACKAGE_LIST_DESKTOP="xserver-xorg xserver-xorg-video-fbdev gvfs-backends gvfs-f
gtk2-engines gtk2-engines-murrine gtk2-engines-pixbuf libgtk2.0-bin gcj-jre-headless xfce4-screenshooter libgnome2-perl gksu bluetooth \
network-manager-gnome xfce4-notifyd gnome-keyring gcr libgck-1-0 libgcr-3-common p11-kit pasystray pavucontrol pulseaudio \
paman pavumeter pulseaudio-module-gconf pulseaudio-module-bluetooth blueman libpam-gnome-keyring libgl1-mesa-dri mpv \
libreoffice-writer libreoffice-style-tango libreoffice-gtk policykit-1 fbi xfce4-power-manager"
libreoffice-writer libreoffice-style-tango libreoffice-gtk policykit-1 fbi xfce4-power-manager profile-sync-daemon"
# Release specific packages
case $RELEASE in

View file

@ -12,11 +12,11 @@ check_abort()
add_profile_sync_settings()
{
config_file="$(psd 2>&1 | tr ' ' '\n' | grep 'psd.conf')"
/usr/bin/psd >/dev/null 2>&1 && config_file="${HOME}/.config/psd/psd.conf"
if [ -f "${config_file}" ]; then
# test for overlayfs
sed -i 's/#USE_OVERLAYFS=.*/USE_OVERLAYFS="yes"/' "${config_file}"
case $(psd p 2>/dev/null | grep Overlayfs) in
case $(/usr/bin/psd p 2>/dev/null | grep Overlayfs) in
*active*)
echo -e "\nConfigured profile sync daemon with overlayfs."
;;
@ -55,7 +55,7 @@ add_user()
if [ $? -eq 0 ]; then
echo -e "${RealUserName} ALL=(ALL) NOPASSWD: /usr/bin/psd-overlay-helper" >>/etc/sudoers
export -f add_profile_sync_settings
su ${RealUserName} -c "bash -c add_profile_sync_settings" >/dev/null 2>&1
su ${RealUserName} -c "bash -c add_profile_sync_settings" 2>/dev/null
fi
}