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)
@@ -14,22 +14,22 @@
## Usage ## Usage
1. Clone this repo and 1. Clone this repo and
```git clone https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine.git``` ```git clone https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine.git```
2. Go to the repo root folder 2. Go to the repo root folder
```cd ./fix-opera-linux-ffmpeg-widevine``` ```cd ./fix-opera-linux-ffmpeg-widevine```
3. (*Optional*) Run script. And if it works well go to next step. 3. (*Optional*) Run script. And if it works well go to next step.
```sudo ./scripts/fix-opera.sh``` ```sudo ./scripts/fix-opera.sh```
4. Run install script and answer few questions. 4. Run install script and answer few questions.
```sudo ./install.sh``` ```sudo ./install.sh```
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