resolve symlinks correctly for deletion

part of #394
This commit is contained in:
Girish Ramakrishnan
2017-09-07 20:10:07 -07:00
parent 74c8d8cc6b
commit 75b3e7fc78
6 changed files with 2655 additions and 12 deletions
+1 -1
View File
@@ -693,7 +693,7 @@ function teardownRedis(app, options, callback) {
safe.fs.unlinkSync(paths.ADDON_CONFIG_DIR, 'redis-' + app.id + '_vars.sh');
shell.sudo('teardownRedis', [ RMAPPDIR_CMD, app.id + '/redis' ], function (error, stdout, stderr) {
shell.sudo('teardownRedis', [ RMAPPDIR_CMD, app.id + '/redis', true /* delete directory */ ], function (error, stdout, stderr) {
if (error) return callback(new Error('Error removing redis data:' + error));
appdb.unsetAddonConfig(app.id, 'redis', callback);