Skip to content

Commit

Permalink
remove installerv2
Browse files Browse the repository at this point in the history
  • Loading branch information
motdotla committed Jun 16, 2024
1 parent 802678d commit 7648c87
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 245 deletions.
40 changes: 14 additions & 26 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,32 +40,6 @@ app.get('/VERSION', (req, res) => {
res.send(VERSION)
})

app.get('/installer.sh', (req, res) => {
const scriptPath = path.join(__dirname, 'installer.sh')

fs.readFile(scriptPath, 'utf8', (err, data) => {
if (err) {
res.status(500).send('Error reading the file')
return
}
res.type('text/plain')
res.send(data)
})
})

app.get('/installerv2.sh', (req, res) => {
const scriptPath = path.join(__dirname, 'installerv2.sh')

fs.readFile(scriptPath, 'utf8', (err, data) => {
if (err) {
res.status(500).send('Error reading the file')
return
}
res.type('text/plain')
res.send(data)
})
})

app.get('/install.sh', (req, res) => {
// /install.sh?version=X.X.X&directory=.
const version = req.query.version
Expand Down Expand Up @@ -95,6 +69,20 @@ app.get('/install.sh', (req, res) => {
})
})

// deprecated - to be replaced with install.sh
app.get('/installer.sh', (req, res) => {
const scriptPath = path.join(__dirname, 'installer.sh')

fs.readFile(scriptPath, 'utf8', (err, data) => {
if (err) {
res.status(500).send('Error reading the file')
return
}
res.type('text/plain')
res.send(data)
})
})

app.get('/deprecated/:os/:arch', async (req, res) => {
const os = req.params.os.toLowerCase()
let arch = req.params.arch.toLowerCase()
Expand Down
219 changes: 0 additions & 219 deletions installerv2.sh

This file was deleted.

0 comments on commit 7648c87

Please sign in to comment.