mirror of
https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine.git
synced 2025-12-29 03:23:00 +03:00
No hardcoded Opera directory in apt hook. Some text messages and readme changes
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
DPkg::Pre-Invoke {"stat -c %Z /usr/lib/x86_64-linux-gnu/opera/opera > /tmp/opera.timestamp";};
|
||||
DPkg::Post-Invoke {"if [ `stat -c %Z /usr/lib/x86_64-linux-gnu/opera/opera` -ne `cat /tmp/opera.timestamp` ]; then /root/.scripts/fix-opera.sh; fi; rm /tmp/opera.timestamp";};
|
||||
DPkg::Pre-Invoke {"stat -c %Z $(readlink -f $(which opera)) > /tmp/opera.timestamp";};
|
||||
DPkg::Post-Invoke {"if [ `stat -c %Z $(readlink -f $(which opera))` -ne `cat /tmp/opera.timestamp` ]; then /root/.scripts/fix-opera.sh; fi; rm /tmp/opera.timestamp";};
|
||||
|
||||
@@ -92,7 +92,7 @@ if $FIX_WIDEVINE; then
|
||||
fi
|
||||
|
||||
#Moving libraries to its place
|
||||
printf 'Moving libraries to its place...\n'
|
||||
printf 'Moving libraries to their places...\n'
|
||||
##ffmpeg
|
||||
mv -f "$TEMP_DIR/opera-fix/$FFMPEG_SO_NAME" "$OPERA_LIB_DIR"
|
||||
chmod 0644 "$OPERA_LIB_DIR/$FFMPEG_SO_NAME"
|
||||
@@ -105,6 +105,6 @@ if $FIX_WIDEVINE; then
|
||||
printf "[\n {\n \"preload\": \"$OPERA_WIDEVINE_DIR\"\n }\n]\n" > "$OPERA_WIDEVINE_CONFIG"
|
||||
fi
|
||||
|
||||
#Removing temprary files
|
||||
printf 'Removing temprary files...\n'
|
||||
#Removing temporary files
|
||||
printf 'Removing temporary files...\n'
|
||||
rm -rf "$TEMP_DIR/opera-fix"
|
||||
|
||||
Reference in New Issue
Block a user