@sysnee/pgs 0.1.7-rc.8 → 0.1.7-rc.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/manager.js +3 -2
  2. package/package.json +1 -1
package/manager.js CHANGED
@@ -240,10 +240,11 @@ function initialSetup() {
240
240
 
241
241
  function installDocker() {
242
242
 
243
- if (execSync('docker --version', { stdio: 'ignore' }).toString().trim() !== '') {
243
+ try {
244
+ execSync('docker info', { stdio: 'pipe' })
244
245
  console.log('Docker already installed')
245
246
  return
246
- }
247
+ } catch (_) {}
247
248
 
248
249
  console.log('Installing Docker...')
249
250
  execSync('curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh', { stdio: 'inherit' })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sysnee/pgs",
3
- "version": "0.1.7-rc.8",
3
+ "version": "0.1.7-rc.9",
4
4
  "description": "Dynamic PostgreSQL service instance manager",
5
5
  "type": "module",
6
6
  "bin": {