Skip to content

Commit 9fad24f

Browse files
committed
Added a rawgithub link to the files instead of mapping to the local files
1 parent a7cddc2 commit 9fad24f

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

changelog.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# Change Log
3+
All notable changes to this project will be documented in this file. As this repository doesn't publish any package (so far), so we are not adding any actual release / version number here.
4+
5+
6+
## [1.0.0] - 12 December 2021
7+
User doesn't need to download the whole repository anymore to run the scripts.
8+
9+
### Added
10+
- [x] Added a rawgithub link to the files instead of mapping to the local files.
11+
- [x] Added a changelog.md file to the repository.
12+
13+
### Changed
14+
- Update readme file to match the latest script execution instructions.

index.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if (shouldProceed === 'y' || shouldProceed === 'yes') {
1616
await $`sudo apt upgrade`
1717
await sleep(1000);
1818
console.log('Now, we are installing the packages:');
19-
await $`zx script.mjs`;
19+
await $`zx https://raw.githubusercontent.com/foyzulkarim/linux-playbook-javascript/main/script.mjs`;
2020
await sleep(1000);
2121
} else {
2222
console.log(`You can't proceed.`);

script.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ if (shouldInstallNginx.toLowerCase() === 'y') {
7676
// docker
7777
let shouldInstallDocker = await question('Do you want to install docker? [y/n] ');
7878
if (shouldInstallDocker.toLowerCase() === 'y') {
79-
await $`zx docker.mjs`
79+
await $`zx https://raw.githubusercontent.com/foyzulkarim/linux-playbook-javascript/main/docker.mjs`
8080
} else {
8181
console.log('Skipping docker installation');
8282
}
8383

8484
// docker-compose
8585
let shouldInstallDockerCompose = await question('Do you want to install docker-compose? [y/n] ');
8686
if (shouldInstallDockerCompose.toLowerCase() === 'y') {
87-
await $`zx docker-compose.mjs`
87+
await $`zx https://raw.githubusercontent.com/foyzulkarim/linux-playbook-javascript/main/docker-compose.mjs`
8888
} else {
8989
console.log('Skipping docker-compose installation');
9090
}

setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ npm i -g npm@latest
1111
npm install -g zx
1212
source ~/.bashrc
1313
zx -v
14-
zx index.mjs
14+
zx https://raw.githubusercontent.com/foyzulkarim/linux-playbook-javascript/main/index.mjs

0 commit comments

Comments
 (0)