/AiurScript

A bash script library that powers Aiursoft on Ubuntu.

Primary LanguageShellMIT LicenseMIT

Aiur Script Project

These are some bash script powers Aiursoft projects on Ubuntu.

Before starting

You need to have bash installed. For linux, it is installed by default. For Windows, download it here.

How to build

Simpliy run the file: ./build.sh

How to use

You can install via the one-line install script. Put the following line to the start of your script.

aiur() { arg="$( cut -d ' ' -f 2- <<< "$@" )" && curl -sL https://gitlab.aiursoft.cn/aiursoft/aiurscript/-/raw/master/$1.sh | sudo bash -s $arg; }

Add to call a function, simply write: aiur func_path/func_name arguments.

Examples

$ aiur Caddy/add_proxy arg1 arg2
$ my_port=$(aiur Network/get_port)

uninstall/docker

View file details

$ aiur uninstall/docker your_arguments

console/success

View file details

$ aiur console/success your_arguments

mssql/config_password

View file details

$ aiur mssql/config_password your_arguments

mssql/run_sql

View file details

$ aiur mssql/run_sql your_arguments

mssql/create_db

View file details

$ aiur mssql/create_db your_arguments

git/clone_to

View file details

$ aiur git/clone_to your_arguments

dotnet/publish

View file details

$ aiur dotnet/publish your_arguments

dotnet/seeddb

View file details

$ aiur dotnet/seeddb your_arguments

caddy/add_file

View file details

$ aiur caddy/add_file your_arguments

caddy/add_proxy

View file details

$ aiur caddy/add_proxy your_arguments

text/edit_json

View file details

$ aiur text/edit_json your_arguments

services/register_aspnet_service

View file details

$ aiur services/register_aspnet_service your_arguments

network/enable_bbr

View file details

$ aiur network/enable_bbr your_arguments

network/get_port

View file details

$ aiur network/get_port your_arguments

network/set_host

View file details

$ aiur network/set_host your_arguments

firewall/enable_firewall

View file details

$ aiur firewall/enable_firewall your_arguments

firewall/open_port

View file details

$ aiur firewall/open_port your_arguments

install/frp_server

View file details

$ aiur install/frp_server your_arguments

install/sql_server

View file details

$ aiur install/sql_server your_arguments

install/docker

View file details

$ aiur install/docker your_arguments

install/python

View file details

$ aiur install/python your_arguments

install/jq

View file details

$ aiur install/jq your_arguments

install/node

View file details

$ aiur install/node your_arguments

install/dotnet

View file details

$ aiur install/dotnet your_arguments

install/iperf3_server

View file details

$ aiur install/iperf3_server your_arguments

install/kubectl

View file details

$ aiur install/kubectl your_arguments

install/caddy

View file details

$ aiur install/caddy your_arguments

install/rust

View file details

$ aiur install/rust your_arguments