Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
koko
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
koko
Commits
e9cc1fb0
Unverified
Commit
e9cc1fb0
authored
Jul 18, 2019
by
Eric_Lee
Committed by
GitHub
Jul 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify dockerfile (#44) (#45)
parent
cbd0f1eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Dockerfile
Dockerfile
+1
-0
sftpvolume.go
pkg/httpd/sftpvolume.go
+2
-2
No files found.
Dockerfile
View file @
e9cc1fb0
...
...
@@ -5,6 +5,7 @@ ARG GOPROXY
ENV
GOPROXY=$GOPROXY
ENV
GO111MODULE=on
COPY
. .
RUN
go mod download
RUN
cd
cmd
&&
go build koko.go
FROM
alpine
...
...
pkg/httpd/sftpvolume.go
View file @
e9cc1fb0
...
...
@@ -18,11 +18,11 @@ import (
func
NewUserVolume
(
user
*
model
.
User
,
addr
,
hostId
string
)
*
UserVolume
{
var
assets
[]
model
.
Asset
var
homename
string
homename
:=
"Home"
switch
hostId
{
case
""
:
assets
=
service
.
GetUserAssets
(
user
.
ID
,
"1"
,
""
)
homename
=
"Home"
default
:
assets
=
service
.
GetUserAssets
(
user
.
ID
,
"1"
,
hostId
)
if
len
(
assets
)
==
1
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment