mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-06 06:37:13 +08:00
28 lines
545 B
Plaintext
28 lines
545 B
Plaintext
|
post_install() {
|
||
|
cd /opt/sage
|
||
|
|
||
|
# set HOME because when sage updates its sage_root (after being moved) it will write files to ~/.sage with root ownership
|
||
|
# the files it writes to ~/.sage can be safely ignored
|
||
|
HOME=/tmp ./sage -c
|
||
|
|
||
|
echo '
|
||
|
___
|
||
|
/ (_) o |
|
||
|
\__ _ _ __ |
|
||
|
/ / |/ | | / \_| | |
|
||
|
\___/ | |_/|/\__/ \_/|/o
|
||
|
/| /|
|
||
|
\| \|
|
||
|
'
|
||
|
|
||
|
}
|
||
|
|
||
|
post_upgrade() {
|
||
|
post_install $1
|
||
|
}
|
||
|
|
||
|
post_remove() {
|
||
|
# clean up left overs
|
||
|
rm -rf /opt/sage
|
||
|
}
|