Skip to content

Commit ab16964

Browse files
author
Tim Schwab
committed
first pass at bash script
1 parent a7685a2 commit ab16964

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

Diff for: scripts/install-redis-linux.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
# Download tarball
4+
# Extract source
5+
# Make
6+
# Run Redis Server
7+
8+
wget http://download.redis.io/redis-stable.tar.gz
9+
tar xvzf redis-stable.tar.gz
10+
cd redis-stable
11+
make
12+
cd src
13+
./redis-server

Diff for: scripts/post-install.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ switch (process.platform) {
1212
)
1313
break
1414
case 'linux':
15-
// This is the way to install on Linux, apparently... https://redis.io/topics/quickstart
15+
// https://redis.io/topics/quickstart
16+
// This is the way to install on Linux, apparently...
1617

1718
// Download tarball
1819
// Extract source
1920
// Make
2021
// Run Redis
21-
console.log('Automated install of Redis currently not implemented on Linux')
22+
exec('sh scripts/install-redis-linux.bat')
2223
break
2324
}

0 commit comments

Comments
 (0)