No hardcoded Opera directory in apt hook. Some text messages and readme changes

This commit is contained in:
Ld-Hagen
2021-10-14 18:42:27 +03:00
parent f73a02813b
commit 8c64261203
4 changed files with 14 additions and 11 deletions

View File

@@ -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";};

View File

@@ -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"