fully test and verify policy script functionality
This commit is contained in:
13
scripts/docker-policy/cs-policy.js
Normal file
13
scripts/docker-policy/cs-policy.js
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
const fs = require('fs')
|
||||
|
||||
const filePath = '/home/orly/cs-policy-output.txt'
|
||||
|
||||
const fileExists = fs.existsSync(filePath)
|
||||
|
||||
if (fileExists) {
|
||||
fs.appendFileSync(filePath, `${Date.now()}: Hey there!\n`)
|
||||
} else {
|
||||
fs.writeFileSync(filePath, `${Date.now()}: Hey there!\n`)
|
||||
}
|
||||
Reference in New Issue
Block a user