signal/element migration

This commit is contained in:
olli 2024-10-29 14:46:43 +01:00
parent 068ec14d7d
commit bd2f68f3ff

View File

@ -47,6 +47,15 @@ fi
defaultuser=$(getent passwd 1000 | cut -d: -f1)
defaultuserhome=$(getent passwd 1000 | cut -d: -f6)
# move data from element/signal flatpaks to default element/signal
if [ -d "$defaultuserhome/.var/app/org.signal.Signal/config/Signal" ]
then
[ -d "$defaultuserhome/.config/Signal" ] || rsync -av "$defaultuserhome"/.var/app/org.signal.Signal/config/Signal/ "$defaultuserhome"/.config/Signal/
fi
if [ -d "$defaultuserhome/.var/app/im.riot.Riot/config/Element" ]
then
[ -d "$defaultuserhome/.config/Element" ] || rsync -av "$defaultuserhome"/.var/app/im.riot.Riot/config/Element/ "$defaultuserhome"/.config/Element/
fi
# hostname
if hostname | grep -q "^${defaultuser}-"