curl silent

This commit is contained in:
mbecker20
2024-05-04 16:12:54 -07:00
parent d45f60f604
commit effd9315cb
2 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ There's two ways to install periphery: `System` and `User`
Note. Run this after switching to root user (eg `sudo su -`).
```sh
curl https://raw.githubusercontent.com/mbecker20/monitor/main/scripts/setup-periphery.py | python3
curl -sSL https://raw.githubusercontent.com/mbecker20/monitor/main/scripts/setup-periphery.py | python3
```
Will install to paths:
@@ -18,7 +18,7 @@ Will install to paths:
## User
```sh
curl https://raw.githubusercontent.com/mbecker20/monitor/main/scripts/setup-periphery.py | python3 - --user
curl -sSL https://raw.githubusercontent.com/mbecker20/monitor/main/scripts/setup-periphery.py | python3 - --user
```
Will install to paths:

View File

@@ -44,7 +44,7 @@ def copy_binary(user_install, bin_dir, version):
if not os.path.isdir(bin_dir):
os.makedirs(bin_dir)
print(os.popen(f'curl --location https://github.com/mbecker20/monitor/releases/download/{version}/periphery > {bin_dir}/periphery').read())
print(os.popen(f'curl -sSL https://github.com/mbecker20/monitor/releases/download/{version}/periphery > {bin_dir}/periphery').read())
os.popen(f'chmod +x {bin_dir}/periphery')
def copy_config(config_dir):
@@ -61,7 +61,7 @@ def copy_config(config_dir):
if not os.path.isdir(config_dir):
os.makedirs(config_dir)
print(os.popen(f'curl https://raw.githubusercontent.com/mbecker20/monitor/main/config_example/periphery.config.example.toml > {config_dir}/periphery.config.toml').read())
print(os.popen(f'curl -sSL https://raw.githubusercontent.com/mbecker20/monitor/main/config_example/periphery.config.example.toml > {config_dir}/periphery.config.toml').read())
def copy_service_file(bin_dir, config_dir, service_dir):
service_file = f'{service_dir}/periphery.service'