summarylogtreecommitdiffstats
path: root/blendnet.install
blob: 774838349758eb0dc140699780f1dd9d08d37f76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
post_install() {
    if [ ! -f /etc/blendnet/server.key ]; then
        echo
        echo "Generating openssl certificate with default validity period of 10 years..."
        openssl req -x509 -nodes -newkey rsa:4096 \
            -keyout /etc/blendnet/server.key -out /etc/blendnet/server.crt \
            -subj "/C=US/ST=N/L=N/O=N/OU=N/CN=blendnet-service"
    fi
    
    echo
    echo "Follow instructions on the BlendNet wiki page to configure your self-hosted render farm: https://wiki.archlinux.org/title/Blender#BlendNet"
    echo
}

post_upgrade() {
    post_install
}