Move installer running to client side for Ubuntu
This commit is contained in:
parent
2029c108e5
commit
8de7ad6b41
5 changed files with 186 additions and 35 deletions
|
|
@ -1,44 +1,52 @@
|
|||
#ifndef SCRIPTS_REGISTRY_H
|
||||
#define SCRIPTS_REGISTRY_H
|
||||
|
||||
#include <QLatin1String>
|
||||
#include "core/defs.h"
|
||||
#include "containers/containers_defs.h"
|
||||
#include "core/defs.h"
|
||||
#include <QLatin1String>
|
||||
|
||||
namespace amnezia {
|
||||
namespace amnezia
|
||||
{
|
||||
|
||||
enum SharedScriptType {
|
||||
// General scripts
|
||||
prepare_host,
|
||||
install_docker,
|
||||
build_container,
|
||||
remove_container,
|
||||
remove_all_containers,
|
||||
setup_host_firewall,
|
||||
check_connection,
|
||||
check_server_is_busy,
|
||||
check_user_in_sudo
|
||||
};
|
||||
enum ProtocolScriptType {
|
||||
// Protocol scripts
|
||||
dockerfile,
|
||||
run_container,
|
||||
configure_container,
|
||||
container_startup,
|
||||
openvpn_template,
|
||||
wireguard_template,
|
||||
awg_template,
|
||||
xray_template
|
||||
};
|
||||
enum SharedScriptType {
|
||||
// General scripts
|
||||
prepare_host,
|
||||
install_docker,
|
||||
build_container,
|
||||
remove_container,
|
||||
remove_all_containers,
|
||||
setup_host_firewall,
|
||||
check_connection,
|
||||
check_server_is_busy,
|
||||
check_user_in_sudo
|
||||
};
|
||||
|
||||
enum ProtocolScriptType {
|
||||
// Protocol scripts
|
||||
dockerfile,
|
||||
run_container,
|
||||
configure_container,
|
||||
container_startup,
|
||||
openvpn_template,
|
||||
wireguard_template,
|
||||
awg_template,
|
||||
xray_template
|
||||
};
|
||||
|
||||
QString scriptFolder(DockerContainer container);
|
||||
enum ClientScriptType {
|
||||
// Client-side scripts
|
||||
linux_installer
|
||||
};
|
||||
|
||||
QString scriptName(SharedScriptType type);
|
||||
QString scriptName(ProtocolScriptType type);
|
||||
QString scriptFolder(DockerContainer container);
|
||||
|
||||
QString scriptData(SharedScriptType type);
|
||||
QString scriptData(ProtocolScriptType type, DockerContainer container);
|
||||
QString scriptName(SharedScriptType type);
|
||||
QString scriptName(ProtocolScriptType type);
|
||||
QString scriptName(ClientScriptType type);
|
||||
|
||||
QString scriptData(SharedScriptType type);
|
||||
QString scriptData(ProtocolScriptType type, DockerContainer container);
|
||||
QString scriptData(ClientScriptType type);
|
||||
}
|
||||
|
||||
#endif // SCRIPTS_REGISTRY_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue