First run after install. Some fixes

This commit is contained in:
Ld-Hagen
2021-10-06 20:15:57 +03:00
parent 78c9762d17
commit f73a02813b
2 changed files with 23 additions and 8 deletions

View File

@@ -6,7 +6,7 @@
## Requirements ## Requirements
1. **wget** (Is needed for downloading the ffmpeg lib and Chrome) 1. **wget** (Is needed for downloading the ffmpeg lib and widevine)
```sudo apt install wget``` ```sudo apt install wget```
2. **unzip** (Is needed for unpacking the downloaded file) 2. **unzip** (Is needed for unpacking the downloaded file)
@@ -32,4 +32,4 @@
5. Delete the repo 5. Delete the repo
```rm -rf ./fix-opera-linux-ffmpeg-widevine``` ```cd .. && rm -rf ./fix-opera-linux-ffmpeg-widevine```

View File

@@ -72,6 +72,7 @@ done
mkdir -p $INSTALL_PATH mkdir -p $INSTALL_PATH
cp -f $SCRIPT_PATH/scripts/fix-opera.sh $INSTALL_PATH cp -f $SCRIPT_PATH/scripts/fix-opera.sh $INSTALL_PATH
chmod +x $INSTALL_PATH/fix-opera.sh
printf "Would you like to create an alias for user $USER_NAME? [y/n]" printf "Would you like to create an alias for user $USER_NAME? [y/n]"
while read CREATE_ALIAS; do while read CREATE_ALIAS; do
@@ -101,3 +102,17 @@ while read CREATE_HOOK; do
continue;; continue;;
esac esac
done done
printf "Would you like to run it now? [y/n]"
while read RUN_NOW; do
case $RUN_NOW in
"y" | "Y")
$INSTALL_PATH/fix-opera.sh
break;;
"n" | "N")
break;;
* )
printf "Would you like to run it now? [y/n]"
continue;;
esac
done