summarylogtreecommitdiffstats
path: root/deej.install
blob: b98677b2362b3063a6bce77dd4cfcde4ac40fb83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
post_install() {
    echo ""
    echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
    echo "!"
    echo "! IMPORTANT:"
    echo "!"
    echo "!   + A sample configuration is included at /opt/deej/default-config.yaml"
    echo "!     You must create your own configuration at /opt/deej/config.yaml"
    echo "!"
    echo "!   + Deej must run from the same directory as it's configuration file"
    echo "!     The provided .desktop entry will accomplish this for you"
    echo "!"
    echo "! https://github.com/omriharel/deej#how-to-run"
    echo "!"
    echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
    echo ""

    if [[ ! -f /opt/deej/config.yaml ]]; then
        cp -r /opt/deej/default-config.yaml /opt/deej/config.yaml
        chmod a+rw /opt/deej/config.yaml
    fi
}

pre_remove() {
    rm -rf /opt/deej/logs
}