Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Daily error

General questions about VestaCP
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
Mattieeec3
Posts: 5
Joined: Thu Nov 16, 2017 8:37 pm

Daily error
  • Quote

Post by Mattieeec3 » Sat Dec 09, 2017 2:22 pm

Hello,

I'm getting a daily mail with an error. I have tried to solve it, without any success.
This is the mail;
/etc/cron.daily/vesta_ssl:
cp: missing destination file operand after ‘/usr/local/vesta/ssl/certificate.crt’
Try 'cp --help' for more information.
cp: missing destination file operand after ‘/usr/local/vesta/ssl/certificate.key’
Try 'cp --help' for more information.
This is my vesta_ssl file:

Code: Select all

	#!/bin/bash

	cert_dst="/usr/local/vesta/ssl/certificate.crt"
	key_dst="/usr/local/vesta/ssl/certificate.key"

	if ! cmp -s $cert_dst $cert_src
	then
        # Copy Certificate
        cp $cert_src $cert_dst


        # Copy Keyfile
        cp $key_src $key_dst

        # Change Permission
        chown root:mail $cert_dst
        chown root:mail $key_dst

        # Restart Services
        service vesta restart &> /dev/null
        service exim4 restart &> /dev/null
fi
Does anybody know how to solve this issue? Thanks in advance!
Top

vanderheyde
Posts: 35
Joined: Fri Dec 08, 2017 3:48 pm

Os: Debian 7x
Web: apache + nginx
Re: Daily error
  • Quote

Post by vanderheyde » Sat Dec 09, 2017 5:39 pm

there is no variable $cert_src defined only $cert_dst. The same for $key_src
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password