mirror of
https://github.com/ronggang/transmission-web-control.git
synced 2024-09-20 06:45:33 +00:00
Fix easy-install web/ folder problem
This commit is contained in:
parent
6be11adec4
commit
cbed1e2598
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,3 +3,4 @@
|
|||
*.vscode
|
||||
node_modules
|
||||
package.json
|
||||
Gruntfile.js
|
||||
|
|
|
@ -29,15 +29,14 @@ else
|
|||
fi
|
||||
fi
|
||||
|
||||
# if the folder does not exist,then do download and installation
|
||||
# if the folder does exist,then do download and installation
|
||||
if [ $folderIsExist = 1 ]; then
|
||||
mkdir "$tmpFolder"
|
||||
cd "$tmpFolder"
|
||||
echo "Downloading Transmission Web Control..."
|
||||
wget "$downloadurl"
|
||||
echo "Installing..."
|
||||
mkdir web
|
||||
tar -xzf "$packname" -C "$tmpFolder/web"
|
||||
tar -xzf "$packname" -C "$tmpFolder"
|
||||
rm "$packname"
|
||||
# if did not install before,then change the original system file name
|
||||
if [ ! -f "$webFolder/$orgindex" -a -f "$webFolder/$index" ]; then
|
||||
|
|
|
@ -36,8 +36,7 @@ if [ $folderIsExist = 1 ]; then
|
|||
echo "Downloading Transmission Web Control..."
|
||||
wget "$downloadurl"
|
||||
echo "Installing..."
|
||||
mkdir web
|
||||
tar -xzf "$packname" -C "$tmpFolder/web"
|
||||
tar -xzf "$packname" -C "$tmpFolder"
|
||||
rm "$packname"
|
||||
# 如果之前没有安装过,则先将原系统的文件改为
|
||||
if [ ! -f "$webFolder/$orgindex" -a -f "$webFolder/$index" ]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user