mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-06 23:55:56 +02:00
Update 02-init_steps.sh
This commit is contained in:
@@ -147,7 +147,7 @@ if bashio::config.true "enable_thumbnails"; then
|
|||||||
# Add variables
|
# Add variables
|
||||||
echo "'preview_ffmpeg_path' => '/usr/bin/ffmpeg',
|
echo "'preview_ffmpeg_path' => '/usr/bin/ffmpeg',
|
||||||
'enable_previews' => true,
|
'enable_previews' => true,
|
||||||
'enabledPreviewProviders' =>
|
'enabledPreviewProviders' =>
|
||||||
array (
|
array (
|
||||||
0 => 'OC\Preview\TXT',
|
0 => 'OC\Preview\TXT',
|
||||||
1 => 'OC\Preview\MarkDown',
|
1 => 'OC\Preview\MarkDown',
|
||||||
@@ -171,8 +171,8 @@ if bashio::config.true "enable_thumbnails"; then
|
|||||||
# Remove leading blanks
|
# Remove leading blanks
|
||||||
# shellcheck disable=SC2116,SC2086
|
# shellcheck disable=SC2116,SC2086
|
||||||
line="$(echo $line)"
|
line="$(echo $line)"
|
||||||
# Use sed to insert the line after the match "installed" in the config_file
|
# Use sed to insert the line at the end in the config_file
|
||||||
sed -i "/installed/i\ \ $line" "$files"
|
sed -i "/);/i\ \ $line" "$files"
|
||||||
done < "$lines_to_add"
|
done < "$lines_to_add"
|
||||||
|
|
||||||
# Clean temporary file
|
# Clean temporary file
|
||||||
|
|||||||
Reference in New Issue
Block a user