Skip to content

Commit

Permalink
Always run migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Jun 17, 2023
1 parent 3bc641f commit 668e1ba
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions server/update/index.js
Expand Up @@ -34,10 +34,6 @@ managed=false
async function activatePowerButtonRecovery({updateRoot}) {
console.log('Activating power button recovery...')

if (await fse.pathExists('/etc/systemd/logind.conf.d/power-button.conf')) {
return console.log(`Skipping because migration has already run`)
}

console.log('Registering acpi event handlers...')
await copyFromOverlay({updateRoot, path: '/etc/acpi/events/power-button'})
await copyFromOverlay({updateRoot, path: '/etc/acpi/power-button.sh'})
Expand Down

0 comments on commit 668e1ba

Please sign in to comment.