1

次のビットがエラーになります。

# Only Execute on Prod Stagesif ($stage eq 'Prod') {
if ($stage eq "Prod") {
    # If /mysql symlink exists, exit0 immediately    
    if ( -l "/mysql" ) {
        exit(0);
        }
    elsif {
        die "Did not meet expected system disk configuration";
    }
}
exit (0);

と:

syntax error at ./010MySQLDataDirectoryCheck.pl line 16, near "elsif {"
syntax error at ./010MySQLDataDirectoryCheck.pl line 19, near "}"
Execution of ./010MySQLDataDirectoryCheck.pl aborted due to compilation errors.

私は正確に何を逃したのですか?

4

1 に答える 1

2

... an elsif==>else万が一?

于 2012-12-12T22:54:13.370 に答える