Skip to content
Snippets Groups Projects
Commit 335e4a5d authored by Bob Mottram's avatar Bob Mottram
Browse files

Don't use peertube logging if it's not installed

parent 8f63fb9c
No related branches found
No related tags found
No related merge requests found
......@@ -271,11 +271,19 @@ function peertube_create_database {
}
function logging_on_peertube {
if [ ! -d $PEERTUBE_DIR ]; then
return
fi
sed -i "s|level: '.*|level: 'debug' # debug/info/warning/error|g" "$PEERTUBE_DIR/config/production.yaml"
systemctl restart peertube
}
function logging_off_peertube {
if [ ! -d $PEERTUBE_DIR ]; then
return
fi
sed -i "s|level: '.*|level: 'error' # debug/info/warning/error|g" "$PEERTUBE_DIR/config/production.yaml"
systemctl restart peertube
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment