Skip to content

Commit

Permalink
server: Make password field to not required
Browse files Browse the repository at this point in the history
  • Loading branch information
ish-hcc committed Sep 24, 2024
1 parent 6509705 commit 1054f64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions server/lib/ssh/sourceFiles/copyAgent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ Initializer() {
# echo "패키지 설치 :" "${NEEDED_DEPS[@]}"
if [ -x "$(command -v apt-get)" ]
then
sudo apt-get install "${NEEDED_DEPS[@]}" -y
sudo -n apt-get install "${NEEDED_DEPS[@]}" -y
elif [ -x "$(command -v yum)" ]
then
sudo yum install "${NEEDED_DEPS[@]}" -y
sudo -n yum install "${NEEDED_DEPS[@]}" -y
else
# echo "패키지 매니저를 찾을 수 없어 설치에 실패하였습니다. 수동으로 다음 패키지 설치 :" "${NEEDED_DEPS[@]}"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion server/pkg/api/rest/model/connectionInfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ type CreateConnectionInfoReq struct {
IPAddress string `gorm:"column:ip_address" json:"ip_address" validate:"required"`
SSHPort int `gorm:"column:ssh_port" json:"ssh_port" validate:"required"`
User string `gorm:"column:user" json:"user" validate:"required"`
Password string `gorm:"column:password" json:"password" validate:"required"`
Password string `gorm:"column:password" json:"password"`
PrivateKey string `gorm:"column:private_key" json:"private_key"`
}

0 comments on commit 1054f64

Please sign in to comment.