Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
45d6e00f
Commit
45d6e00f
authored
Feb 22, 2017
by
neilpang
Browse files
fix format
parent
6dfc8fe0
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/vsftpd.sh
View file @
45d6e00f
...
@@ -39,7 +39,7 @@ vsftpd_deploy() {
...
@@ -39,7 +39,7 @@ vsftpd_deploy() {
else
else
_err
"It seems that the specified vsftpd conf is not valid, please check."
_err
"It seems that the specified vsftpd conf is not valid, please check."
return
1
return
1
fi
fi
fi
fi
if
[
!
-w
"
$_vsftpd_conf
"
]
;
then
if
[
!
-w
"
$_vsftpd_conf
"
]
;
then
...
@@ -50,7 +50,7 @@ vsftpd_deploy() {
...
@@ -50,7 +50,7 @@ vsftpd_deploy() {
_backup_conf
=
"
$DOMAIN_BACKUP_PATH
/vsftpd.conf.bak"
_backup_conf
=
"
$DOMAIN_BACKUP_PATH
/vsftpd.conf.bak"
_info
"Backup
$_vsftpd_conf
to
$_backup_conf
"
_info
"Backup
$_vsftpd_conf
to
$_backup_conf
"
cp
"
$_vsftpd_conf
"
"
$_backup_conf
"
cp
"
$_vsftpd_conf
"
"
$_backup_conf
"
_info
"Copying key and cert"
_info
"Copying key and cert"
_real_key
=
"
$_ssl_path
/vsftpd.key"
_real_key
=
"
$_ssl_path
/vsftpd.key"
if
!
cat
"
$_ckey
"
>
"
$_real_key
"
;
then
if
!
cat
"
$_ckey
"
>
"
$_real_key
"
;
then
...
@@ -63,7 +63,7 @@ vsftpd_deploy() {
...
@@ -63,7 +63,7 @@ vsftpd_deploy() {
return
1
return
1
fi
fi
_info
"Modify vsftpd conf:
$_vsftpd_conf
"
_info
"Modify vsftpd conf:
$_vsftpd_conf
"
DEFAULT_VSFTPD_RELOAD
=
"service vsftpd restart"
DEFAULT_VSFTPD_RELOAD
=
"service vsftpd restart"
_reload
=
"
${
DEPLOY_VSFTPD_RELOAD
:-
$DEFAULT_VSFTPD_RELOAD
}
"
_reload
=
"
${
DEPLOY_VSFTPD_RELOAD
:-
$DEFAULT_VSFTPD_RELOAD
}
"
if
_setopt
"
$_vsftpd_conf
"
"rsa_cert_file"
"="
"
$_real_fullchain
"
\
if
_setopt
"
$_vsftpd_conf
"
"rsa_cert_file"
"="
"
$_real_fullchain
"
\
...
...
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