cd /home/dashboard && node -e " const fs = require('fs'); let h = fs.readFileSync('public/index.html','utf8'); h = h.replace(/acf-options\/v2/g,'acf-options/v1'); h = h.replace(/slug\.includes\(/g,'(pageSlug||slug||\\'\\').includes('); fs.writeFileSync('public/index.html',h); console.log('Done'); " && pm2 restart dashboard cd /home/dashboard && node -e " const fs = require('fs'); let h = fs.readFileSync('public/index.html','utf8'); h = h.replace(/acf-options\/v2/g,'acf-options/v1'); h = h.replace(/slug\.includes\(/g,'(pageSlug||slug||\\'\\').includes('); fs.writeFileSync('public/index.html',h); console.log('Done'); " && pm2 restart dashboard