summarylogtreecommitdiffstats
path: root/celestia-addon-sun.install
blob: bf59c219579e74851043f4b1090b7fbbcf4d50fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

post_install() {
	echo "WARNING: This plugin overwrites the following Celestia file:"
	echo "/usr/share/celestia/textures/medres/gstar.jpg"
	echo "It will be restored from the gstar-original.jpg file"
	echo "when you uninstall the celestia-addon-sun package."

	mv --verbose "/usr/share/celestia/textures/medres/gstar.jpg" "/usr/share/celestia/textures/medres/gstar-original.jpg"
	mv --verbose "/usr/share/celestia/textures/medres/gstar_celestia-addon-sun.jpg" "/usr/share/celestia/textures/medres/gstar.jpg"
}

post_upgrade() {
	post_install
}


post_remove() {
	echo "Restore the original Celestia file:"
	echo "/usr/share/celestia/textures/medres/gstar.jpg"
	mv --verbose "/usr/share/celestia/textures/medres/gstar-original.jpg" "/usr/share/celestia/textures/medres/gstar.jpg"
}