-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
107 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.vstags | ||
|
||
SGW_*.tgz | ||
SGW_*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,16 +10,19 @@ Testing and bug reports are welcome. | |
|
||
## Requirements | ||
|
||
* i-MSCP 1.5.x (plugin version v1.4.x) | ||
* i-MSCP 1.4.x (plugin version v1.4.x) | ||
* i-MSCP 1.5.x (plugin version v1.5.x) | ||
* i-MSCP 1.4.x (plugin version v1.5.x) | ||
* i-MSCP 1.3.x (up to version v1.1.1) | ||
|
||
Plugin version 1.4.0 has been tested with i-MSCP version 1.4.7 on Debian Stretch 9.4 | ||
Plugin version 1.4.x has been tested with i-MSCP version 1.4.7 on Debian Stretch 9.4 | ||
|
||
Plugin version 1.4.0 has been tested with i-MSCP version 1.5.x on Debian Stretch 9.4 | ||
Plugin version 1.5.x has been tested with i-MSCP version 1.5.x on Debian Stretch 9.4 | ||
|
||
## Installation | ||
|
||
Download the SGW_LetsEncrypt.tgz release file from the releases page. Don't download the Git source archive if | ||
you plan to upload using hte plugin management interface. | ||
|
||
1. Upload the plugin through the plugin management interface | ||
2. Install the plugin through the plugin management interface | ||
|
||
|
@@ -31,7 +34,7 @@ Plugin version 1.4.0 has been tested with i-MSCP version 1.5.x on Debian Stretch | |
## License | ||
|
||
``` | ||
i-MSCP LetsEncrypt plugin | ||
i-MSCP SGW_LetsEncrypt plugin | ||
Copyright (C) 2017 Cambell Prince <[email protected]> | ||
This program is free software; you can redistribute it and/or modify | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
global $name; | ||
|
||
$name = 'SGW_LetsEncrypt'; | ||
|
||
function execute($cmd) { | ||
echo $cmd . PHP_EOL; | ||
$f = popen($cmd, 'r'); | ||
while (!feof($f)) { | ||
echo fread($f, 1024); | ||
} | ||
$result = pclose($f); | ||
if ($result !== 0) { | ||
throw new \Exception("Task failed"); | ||
} | ||
} | ||
|
||
$fred->task('db-backup', function () use ($fred) { | ||
$user = getenv('USER'); | ||
$password_db = getenv('password_db'); | ||
execute("/usr/bin/mysqldump -u $user --password=$password_db imscp | gzip > data/imscp_dev.sql.gz"); | ||
}); | ||
|
||
$fred->task('package-zip', function () use ($fred) { | ||
global $name; | ||
execute("rm -f *.zip && zip -r -x@./upload-exclude-zip.txt -y -q ./$name.zip ."); | ||
}); | ||
|
||
$fred->task('package-tar', function () use ($fred) { | ||
global $name; | ||
execute("rm -f *.tgz && tar -cvzf ./$name.tgz --transform 's|./|$name/|' -X upload-exclude.txt ./*"); | ||
}); | ||
|
||
$fred->task('package', function () use ($fred) { | ||
// Note: Only tgz / bzip2 are supported for upload as iMSCP plugins | ||
// $fred->execute('package-zip'); | ||
$fred->execute('package-tar'); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,10 +21,10 @@ | |
return array( | ||
'author' => 'Cambell Prince', | ||
'email' => '[email protected]', | ||
'version' => '1.4.0', | ||
'version' => '1.5.0', | ||
'require_api' => '1.0.5', | ||
'date' => '2018-07-18', | ||
'name' => 'LetsEncrypt', | ||
'date' => '2019-03-25', | ||
'name' => 'SGW_LetsEncrypt', | ||
'desc' => 'Plugin that provides LetsEncrypt SSL certificates.', | ||
'url' => 'https://github.com/saygoweb/imscp-plugin-letsencrypt' | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.git/* | ||
*/.git/* | ||
.gitignore | ||
.vscode/* | ||
node_modules/* | ||
composer.* | ||
package.json | ||
*/test/* | ||
test/* | ||
phpunit.xml | ||
Vagrantfile | ||
build* | ||
.travis.yml | ||
*.zip | ||
*.tgz | ||
gulpfile.js | ||
fred.php | ||
upload-exclude.txt | ||
upload-exclude-zip.txt | ||
phpunit.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.git | ||
.gitignore | ||
.vscocde | ||
node_modules | ||
composer.* | ||
package.json | ||
test | ||
phpunit.xml | ||
Vagrantfile | ||
build* | ||
.travis.yml | ||
*.zip | ||
*.tgz | ||
gulpfile.js | ||
fred.php | ||
upload-exclude.txt | ||
upload-exclude-zip.txt |