summarylogtreecommitdiffstats
path: root/mstream.install
blob: 06ef082a74a21ffaa73ceeccab5a8240d4434e5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
post_install(){
 echo "To bind to localhost only, edit \"/usr/lib/node_modules/mstream/mstream.js\"
and replace
            server.listen(program.port, () => {
with
            server.listen(program.port, '127.0.0.1', () => {
    
To access the service using a subdirectory, edit \"/usr/lib/node_modules/mstream/modules/defaults.js\"
and replace
            rootPath: Joi.string().default('/'),    
with
            rootPath: Joi.string().default('/subdirectory'),

Please notice that these files gets restored when updating.
"
}

post_upgrade(){
 post_install
}