Fix easy-install web/ folder problem

This commit is contained in:
DarkAlexWang 2017-05-04 17:48:15 -04:00
parent 6be11adec4
commit cbed1e2598
3 changed files with 4 additions and 5 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@
*.vscode
node_modules
package.json
Gruntfile.js

View File

@ -29,15 +29,14 @@ else
fi
fi
# if the folder does not existthen do download and installation
# if the folder does existthen 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 beforethen change the original system file name
if [ ! -f "$webFolder/$orgindex" -a -f "$webFolder/$index" ]; then

View File

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