Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
1c619cc5
Commit
1c619cc5
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Tidying
parent
1db99d45
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-app-gogs
+25
-27
25 additions, 27 deletions
src/freedombone-app-gogs
with
25 additions
and
27 deletions
src/freedombone-app-gogs
+
25
−
27
View file @
1c619cc5
...
...
@@ -120,31 +120,31 @@ function upgrade_gogs {
mkdir
-p
${
INSTALL_DIR
}
fi
cd
${
INSTALL_DIR
}
if
[
-f
linux-
${
CURR_ARCH
}
.tar.gz
]
;
then
rm
linux-
${
CURR_ARCH
}
.tar.gz
fi
wget
${
GOGS_BIN
}
if
[
!
-f
linux_
${
CURR_ARCH
}
.tar.gz
]
;
then
GOGS_BIN
=
"https://github.com/gogits/gogs/releases/download/v
${
GOGS_VERSION
}
/linux_
${
CURR_ARCH
}
.zip"
GOGS_FILE
=
linux_
${
CURR_ARCH
}
.tar.gz
if
[
!
-f
$GOGS_FILE
]
;
then
wget
${
GOGS_BIN
}
if
[
!
-f
linux_
${
CURR_ARCH
}
.zip
]
;
then
fi
if
[
!
-f
$GOGS_FILE
]
;
then
GOGS_FILE
=
linux_
${
CURR_ARCH
}
.zip
GOGS_BIN
=
"https://github.com/gogits/gogs/releases/download/v
${
GOGS_VERSION
}
/
${
GOGS_FILE
}
"
if
[
!
-f
${
GOGS_FILE
}
]
;
then
wget
${
GOGS_BIN
}
fi
if
[
!
-f
${
GOGS_FILE
}
]
;
then
exit
37836
else
apt-get
-y
install
unzip
unzip
-A
linux_
${
CURR_ARCH
}
.zip
unzip
-A
${
GOGS_FILE
}
fi
else
tar
-xzf
${
INSTALL_DIR
}
/
linux_
${
CURR_ARCH
}
.tar.gz
tar
-xzf
${
INSTALL_DIR
}
/
${
GOGS_FILE
}
fi
if
[
!
-d
$INSTALL_DIR
/gogs
]
;
then
exit
37823
fi
cp
-r
$INSTALL_DIR
/gogs /home/
$GOGS_USERNAME
if
[
-f
linux_
${
CURR_ARCH
}
.tar.gz
]
;
then
rm
linux_
${
CURR_ARCH
}
.tar.gz
fi
if
[
-f
linux_
${
CURR_ARCH
}
.zip
]
;
then
rm
linux_
${
CURR_ARCH
}
.zip
if
[
-f
${
GOGS_FILE
}
]
;
then
rm
${
GOGS_FILE
}
fi
sed
-i
"s|Gogs version.*|Gogs version:
$GOGS_VERSION
|g"
$COMPLETION_FILE
...
...
@@ -351,31 +351,29 @@ function install_gogs {
mkdir
-p
${
INSTALL_DIR
}
fi
cd
${
INSTALL_DIR
}
if
[
-f
linux-
${
CURR_ARCH
}
.tar.gz
]
;
then
rm
linux-
${
CURR_ARCH
}
.tar.gz
GOGS_FILE
=
linux_
${
CURR_ARCH
}
.tar.gz
if
[
!
-f
${
GOGS_FILE
}
]
;
then
wget
${
GOGS_BIN
}
fi
wget
${
GOGS_BIN
}
if
[
!
-f
linux_
${
CURR_ARCH
}
.
tar.gz
]
;
then
GOGS_BIN
=
"https://github.com/gogits/gogs/releases/download/v
${
GOGS_VERSION
}
/
linux_
${
CURR_ARCH
}
.zip
"
if
[
!
-f
${
GOGS_FILE
}
]
;
then
GOGS_FILE
=
linux_
${
CURR_ARCH
}
.
zip
GOGS_BIN
=
"https://github.com/gogits/gogs/releases/download/v
${
GOGS_VERSION
}
/
${
GOGS_FILE
}
"
wget
${
GOGS_BIN
}
if
[
!
-f
linux_
${
CURR_ARCH
}
.zip
]
;
then
if
[
!
-f
${
GOGS_FILE
}
]
;
then
exit
37836
else
apt-get
-y
install
unzip
unzip
-A
linux_
${
CURR_ARCH
}
.zip
unzip
-A
${
GOGS_FILE
}
fi
else
tar
-xzf
${
INSTALL_DIR
}
/
linux_
${
CURR_ARCH
}
.tar.gz
tar
-xzf
${
INSTALL_DIR
}
/
${
GOGS_FILE
}
fi
if
[
!
-d
$INSTALL_DIR
/gogs
]
;
then
exit
37823
fi
cp
-r
$INSTALL_DIR
/gogs /home/
$GOGS_USERNAME
if
[
-f
linux_
${
CURR_ARCH
}
.tar.gz
]
;
then
rm
linux_
${
CURR_ARCH
}
.tar.gz
fi
if
[
-f
linux_
${
CURR_ARCH
}
.zip
]
;
then
rm
linux_
${
CURR_ARCH
}
.zip
if
[
-f
${
GOGS_FILE
}
]
;
then
rm
${
GOGS_FILE
}
fi
if
[
!
-f
/home/
$GOGS_USERNAME
/gogs
]
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment