mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
22 lines
765 B
Smarty
22 lines
765 B
Smarty
#!/bin/bash
|
|
|
|
if type update-alternatives 2>/dev/null >&1; then
|
|
# Remove previous link if it doesn't use update-alternatives
|
|
if [ -L '/usr/bin/waveterm' -a -e '/usr/bin/waveterm' -a "`readlink '/usr/bin/waveterm'`" != '/etc/alternatives/waveterm' ]; then
|
|
rm -f '/usr/bin/waveterm'
|
|
fi
|
|
update-alternatives --install '/usr/bin/waveterm' 'waveterm' '/opt/Wave/waveterm' 100 || ln -sf '/opt/Wave/waveterm' '/usr/bin/waveterm'
|
|
else
|
|
ln -sf '/opt/Wave/waveterm' '/usr/bin/waveterm'
|
|
fi
|
|
|
|
chmod 4755 '/opt/Wave/chrome-sandbox' || true
|
|
|
|
if hash update-mime-database 2>/dev/null; then
|
|
update-mime-database /usr/share/mime || true
|
|
fi
|
|
|
|
if hash update-desktop-database 2>/dev/null; then
|
|
update-desktop-database /usr/share/applications || true
|
|
fi
|