7 echo " ==> Setting permissions to allow auto-update"
8 chgrp -R users /opt/dofus/share
9 chmod -R g+w /opt/dofus/share
10 echo " ==> Note: The first auto-update will download all game"
11 echo " ==> content and may take a long time (~1GB)."
15 echo " ==> Backing up last downloads..."
16 [ -e /opt/dofus/share/DofusInvoker.swf ] && cp /opt/dofus/share/DofusInvoker.swf /opt/dofus/share/DofusInvoker.swf.bak
17 [ -e /opt/dofus/share/reg/Reg.swf ] && cp /opt/dofus/share/reg/Reg.swf /opt/dofus/share/reg/Reg.swf.bak
18 [ -e /opt/dofus/share/UpLauncher ] && cp /opt/dofus/share/UpLauncher /opt/dofus/share/UpLauncher.bak
19 [ -e /opt/dofus/share/uplauncherComponents.xml ] && cp /opt/dofus/share/uplauncherComponents.xml /opt/dofus/share/uplauncherComponents.xml.bak
23 echo " ==> Restoring last downloads..."
24 [ -e /opt/dofus/share/DofusInvoker.swf.bak ] && mv /opt/dofus/share/DofusInvoker.swf.bak /opt/dofus/share/DofusInvoker.swf
25 [ -e /opt/dofus/share/reg/Reg.swf.bak ] && mv /opt/dofus/share/reg/Reg.swf.bak /opt/dofus/share/reg/Reg.swf
26 [ -e /opt/dofus/share/UpLauncher.bak ] && mv /opt/dofus/share/UpLauncher.bak /opt/dofus/share/UpLauncher
27 [ -e /opt/dofus/share/uplauncherComponents.xml.bak ] && mv /opt/dofus/share/uplauncherComponents.xml.bak /opt/dofus/share/uplauncherComponents.xml
28 echo " ==> Setting permissions to allow auto-update"
29 chgrp -R users /opt/dofus/share
30 chmod -R g+w /opt/dofus/share
38 echo " ==> Note: To completely remove Dofus from your disk,"
39 echo " ==> delete the folder /opt/dofus and its subfolders."
40 echo " ==> This is due to the auto-updater's temp files."
43 # vim:set ts=2 sw=2 et: