Skip to content

Commit

Permalink
nobody ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
Code-Egg committed Aug 20, 2020
1 parent 5d5fed6 commit 0efea04
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,32 @@ Description

lsws1clk is a one-click installation script for LiteSpeed Web Server. Using this script,
you can quickly and easily install:
1. LSWS + PHP + MariaDB + WordPress + LiteSpeed Cache + Object Cache
2. LSWS + PHP + MariaDB + Magento2 + LiteMage
| LSWS+PHP+DB|Application|Cache Plugin|
| :-------------: | :-------------: | :-------------: |
| V |WordPress | V|
| V |Magento2 | V |
|V|OpenCart||
|V|PrestaShop||

The script come with trial license by default which has 15 days for free. After that, you may want to apply with your license.
License start from $0. [Read More](https://www.litespeedtech.com/products/litespeed-web-server/lsws-pricing)

# How to use
---------
This script is design for one application quick install and testing porpuse.

## Install Pre-Requisites
For CentOS/RHEL Based Systems
```bash
yum install git -y
yum install git -y; git clone https://github.com/Code-Egg/lsws1clk.git
```

For Debian/Ubuntu Based Systems
```bash
apt install git -y
apt install git -y; git clone https://github.com/Code-Egg/lsws1clk.git
```

## Install
``` bash
git clone https://github.com/Code-Egg/lsws1clk.git
```
### WordPress
``` bash
lsws1clk/lsws1clk.sh -W
Expand Down
9 changes: 7 additions & 2 deletions lsws1clk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -830,8 +830,13 @@ set_mariadb_user(){
}

www_user_pass(){
LINENUM=$(grep -n -m1 www-data /etc/passwd | awk -F ':' '{print $1}')
sed -i "${LINENUM}s|/usr/sbin/nologin|/bin/bash|" /etc/passwd
if [ "${OSNAME}" = "centos" ]; then
LINENUM=$(grep -n -m1 nobody /etc/passwd | awk -F ':' '{print $1}')
sed -i "${LINENUM}s|sbin/nologin|/bin/bash|" /etc/passwd
elif [ "${OSNAME}" = 'ubuntu' ] || [ "${OSNAME}" = 'debian' ]; then
LINENUM=$(grep -n -m1 www-data /etc/passwd | awk -F ':' '{print $1}')
sed -i "${LINENUM}s|/usr/sbin/nologin|/bin/bash|" /etc/passwd
fi
}

install_WP_CLI(){
Expand Down

0 comments on commit 0efea04

Please sign in to comment.