signal/element migration
This commit is contained in:
parent
068ec14d7d
commit
bd2f68f3ff
9
mint.sh
9
mint.sh
@ -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}-"
|
||||
|
Loading…
Reference in New Issue
Block a user