发布应用 Kotatsu
This commit is contained in:
66
apps/kotatsu/README.md
Normal file
66
apps/kotatsu/README.md
Normal file
@@ -0,0 +1,66 @@
|
||||
# Kotatsu
|
||||
|
||||
口袋里的漫画
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## 安装说明
|
||||
|
||||
### Kotatsu 同步服务器
|
||||
|
||||
Kotatsu 是一款适用于 Android 平台的免费开源漫画阅读器。它支持多种语言的在线漫画,并具备筛选和搜索功能、本地存储离线阅读、收藏、书签、新章节通知等功能。
|
||||
|
||||
如果您不想公开自部署的同步服务器,请在注册完成自己的设备后,将`允许新用户注册`改为禁止,重启即可。
|
||||
|
||||
## 简介
|
||||
|
||||
一款简单、方便的 Android 开源漫画阅读器,由社区提供,您可以比以往更轻松地找到和阅读您喜欢的漫画。
|
||||
|
||||
## 特性
|
||||
|
||||
### 大量来源
|
||||
|
||||
支持超过 1000 个来源
|
||||
|
||||
### 可定制的阅读器
|
||||
|
||||
通过不同的阅读器设置使阅读更加方便
|
||||
|
||||
### 支持追踪
|
||||
|
||||
支持 MyAnimeList、Anilist 和 Shikimori
|
||||
|
||||
### 智能搜索
|
||||
|
||||
快速轻松地搜索感兴趣的标题
|
||||
|
||||
### 强大的下载器
|
||||
|
||||
可以缓慢下载标题以避免出现源问题
|
||||
|
||||
### 同步
|
||||
|
||||
轻松在您的设备之间同步系列。
|
||||
|
||||
## 下载客户端
|
||||
|
||||
<div style="display: flex; justify-content: center; gap: 40px; text-align: center;">
|
||||
<div style="width: 256px; display: flex; flex-direction: column; align-items: center;">
|
||||
<img src="https://file.lifebus.top/imgs/badge/get-f-droid-badge.svg"
|
||||
alt="F-Droid"
|
||||
style="width: 256px; height: 80px; object-fit: contain;">
|
||||
<a href="https://f-droid.org/packages/org.koitharu.kotatsu/">F-Droid</a>
|
||||
</div>
|
||||
<div style="width: 256px; display: flex; flex-direction: column; align-items: center;">
|
||||
<img src="https://file.lifebus.top/imgs/badge/github-badge.svg"
|
||||
alt="GitHub"
|
||||
style="width: 256px; height: 80px; object-fit: contain;">
|
||||
<a href="https://github.com/KotatsuApp/Kotatsu/releases/latest/">GitHub Releases</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
---
|
||||
|
||||

|
||||
14
apps/kotatsu/data.yml
Normal file
14
apps/kotatsu/data.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
additionalProperties:
|
||||
key: kotatsu
|
||||
name: Kotatsu
|
||||
tags:
|
||||
- WebSite
|
||||
- Local
|
||||
shortDescZh: 口袋里的漫画
|
||||
shortDescEn: Manga in your pocket
|
||||
type: website
|
||||
crossVersionUpdate: true
|
||||
limit: 0
|
||||
website: https://kotatsu.app/
|
||||
github: https://github.com/KotatsuApp/Kotatsu/
|
||||
document: https://kotatsu.app/
|
||||
BIN
apps/kotatsu/logo.png
Normal file
BIN
apps/kotatsu/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
56
apps/kotatsu/logo.svg
Normal file
56
apps/kotatsu/logo.svg
Normal file
@@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 24.1.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 1406.2 1406.2" style="enable-background:new 0 0 1406.2 1406.2;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#0058C9;}
|
||||
.st1{display:none;}
|
||||
.st2{display:inline;}
|
||||
</style>
|
||||
<path id="path" class="st0" d="M391.7,270.7c-51.6,18.6-96.2,88.4-117.9,183.6c-7.8,34.8-15.1,93.5-15.1,121.7v19.7l-23.3,36.6
|
||||
c-65,101.3-124.6,206.8-180.5,319.2C5.1,1051,0,1063.2,0,1080.9c0,7.8,2,18,4,22.2c6.6,12,22.2,24.4,39.7,31l16,6.2l651.1-0.2
|
||||
c633.1,0,651.1-0.4,661.2-5.3c32.6-16.9,43-51.7,26.2-88c-63.8-139-150.5-296.8-229.6-418.5l-19.1-29.5l-2.2-33.7
|
||||
c-8.7-129.4-36.1-208.6-92-266.5c-24.2-24.8-33.5-30.4-50.6-30.6c-23.9,0-39.9,10.9-75.6,52.1c-35.2,40.4-42.4,50.1-66.9,86.4
|
||||
c-12,17.7-27,38.3-33.2,45.5l-11.3,13.5h-117l-117-0.2L560.2,429C515,359.2,440.7,274.5,419.6,268.7
|
||||
C406.8,264.9,409,264.5,391.7,270.7z M466.2,666.4c8.9,6.2,11.3,11.8,14.4,37.7c4,30.6,7.7,34.8,27.5,32.4
|
||||
c18-2.2,32.6,3.6,40.8,16.6c16,25.9-11.5,80.2-50.6,99.3c-14,7.1-19.1,7.8-42.8,7.8c-22.8,0-28.8-1.1-39.4-6.7
|
||||
c-31.2-16.4-50.3-40.3-58.3-71.8c-4-16.6-4.2-21.7-1.1-36.3c4.2-21.1,11.5-35.2,24.8-50.1C404.8,669.5,449.1,654.4,466.2,666.4z
|
||||
M964,669c8.7,7.3,9.3,9.7,13.5,43.4c2.6,20.6,8.7,26.8,25.3,24.2c16-2.2,29.9,2.2,39.2,12.9c15.1,18.2,6.2,53.4-20.8,82.2
|
||||
c-21.7,23.1-35.2,28.4-69.2,28.8c-25.9,0-29.1-0.5-42.8-8.2c-20.2-11.3-38.4-29.9-47.7-49c-6.2-12.8-8.2-20.8-8.9-39.2
|
||||
c-0.9-21.1,0-25,7.7-41c14-30.4,35.5-49.2,65-57C945.2,660.2,954.7,661.1,964,669z"/>
|
||||
<g class="st1">
|
||||
<path class="st2" d="M1806.5,939.2V464h88.3v475.3L1806.5,939.2L1806.5,939.2z M1885.3,827.2l-4.8-104.5L2129.7,464h99.1
|
||||
l-207.1,220l-48.9,53.6L1885.3,827.2z M2137.8,939.2l-181.9-216.6l58.4-64.5L2241,939.2H2137.8L2137.8,939.2z"/>
|
||||
<path class="st2" d="M2440.6,944c-37.1,0-70.2-8-99.1-24.1c-29-16.1-51.8-38.1-68.6-66.2c-16.8-28.1-25.1-60-25.1-95.7
|
||||
c0-36.2,8.4-68.2,25.1-96.1c16.7-27.8,39.6-49.7,68.6-65.5s62-23.8,99.1-23.8c37.6,0,70.9,7.9,100.1,23.8
|
||||
c29.2,15.9,52.1,37.6,68.6,65.2c16.5,27.6,24.8,59.8,24.8,96.4c0,35.8-8.3,67.7-24.8,95.7c-16.5,28.1-39.4,50.1-68.6,66.2
|
||||
C2511.6,936,2478.2,944,2440.6,944z M2440.6,871.3c20.8,0,39.4-4.5,55.7-13.6c16.3-9,29.1-22.2,38.4-39.4
|
||||
c9.3-17.2,13.9-37.3,13.9-60.4c0-23.5-4.6-43.8-13.9-60.8c-9.3-17-22.1-30-38.4-39c-16.3-9-34.6-13.6-55-13.6
|
||||
c-20.8,0-39.3,4.5-55.3,13.6c-16.1,9-28.8,22.1-38.3,39c-9.5,17-14.3,37.2-14.3,60.8c0,23.1,4.8,43.2,14.3,60.4
|
||||
s22.3,30.3,38.3,39.4C2402,866.8,2420.3,871.3,2440.6,871.3z"/>
|
||||
<path class="st2" d="M2667.4,647.3v-67.9h241.7v67.9H2667.4z M2852.1,944c-39.8,0-70.6-10.3-92.3-30.9
|
||||
c-21.7-20.6-32.6-51-32.6-91.3V496.6h84.9v323.2c0,17.2,4.4,30.5,13.2,40.1c8.8,9.5,21.1,14.3,37,14.3c19,0,34.9-5,47.5-14.9
|
||||
l23.8,60.4c-9.9,8.2-22.2,14.3-36.7,18.3C2882.4,941.9,2867.4,944,2852.1,944z"/>
|
||||
<path class="st2" d="M3112.8,944c-27.2,0-50.9-4.6-71.3-13.9c-20.4-9.3-36.1-22.2-47.2-38.7c-11.1-16.5-16.6-35.2-16.6-56
|
||||
c0-20.4,4.9-38.7,14.6-55c9.7-16.3,25.7-29.2,47.9-38.7s51.6-14.3,88.3-14.3h105.2v56.3h-99.1c-29,0-48.4,4.7-58.4,13.9
|
||||
c-10,9.3-14.9,20.7-14.9,34.3c0,15.4,6.1,27.6,18.3,36.7c12.2,9.1,29.2,13.6,50.9,13.6c20.8,0,39.5-4.8,56-14.3
|
||||
s28.4-23.5,35.6-42.1l14.3,50.9c-8.1,21.3-22.7,37.8-43.8,49.6S3144.9,944,3112.8,944z M3226.8,939.2v-73.3l-4.8-15.6V722
|
||||
c0-24.9-7.5-44.2-22.4-58s-37.6-20.7-67.9-20.7c-20.4,0-40.4,3.2-60.1,9.5c-19.7,6.3-36.3,15.2-49.9,26.5l-33.3-61.8
|
||||
c19.4-14.9,42.6-26.1,69.6-33.6c26.9-7.5,54.9-11.2,83.8-11.2c52.5,0,93.1,12.6,121.9,37.7c28.7,25.1,43.1,63.9,43.1,116.4v212.5
|
||||
L3226.8,939.2L3226.8,939.2z"/>
|
||||
<path class="st2" d="M3367.4,647.3v-67.9h241.7v67.9H3367.4z M3552,944c-39.8,0-70.6-10.3-92.3-30.9c-21.7-20.6-32.6-51-32.6-91.3
|
||||
V496.6h84.9v323.2c0,17.2,4.4,30.5,13.2,40.1c8.8,9.5,21.1,14.3,37,14.3c19,0,34.9-5,47.5-14.9l23.8,60.4
|
||||
c-9.9,8.2-22.2,14.3-36.7,18.3C3582.3,941.9,3567.4,944,3552,944z"/>
|
||||
<path class="st2" d="M3815.5,944c-30.3,0-59.4-4-87.2-11.9s-49.9-17.5-66.2-28.9l32.6-64.5c16.3,10.4,35.8,19,58.4,25.8
|
||||
c22.6,6.8,45.3,10.2,67.9,10.2c26.7,0,46-3.6,58-10.9c12-7.2,18-17,18-29.2c0-10-4.1-17.5-12.2-22.8c-8.1-5.2-18.8-9.2-31.9-11.9
|
||||
c-13.1-2.7-27.7-5.2-43.8-7.5s-32.1-5.3-48.2-9.2c-16.1-3.8-30.7-9.5-43.8-17s-23.8-17.5-31.9-30.2c-8.1-12.7-12.2-29.4-12.2-50.2
|
||||
c0-23.1,6.6-43.1,19.7-60.1c13.1-17,31.6-30.1,55.3-39.4c23.8-9.3,51.9-13.9,84.5-13.9c24.4,0,49.1,2.7,74,8.1
|
||||
c24.9,5.4,45.5,13.1,61.8,23.1l-32.6,64.5c-17.2-10.4-34.5-17.5-51.9-21.4c-17.4-3.8-34.7-5.8-51.9-5.8c-25.8,0-44.9,3.9-57.4,11.5
|
||||
c-12.4,7.7-18.7,17.4-18.7,29.2c0,10.9,4.1,19,12.2,24.4c8.1,5.4,18.8,9.7,31.9,12.9c13.1,3.2,27.7,5.8,43.8,7.8s32,5.1,47.9,9.2
|
||||
c15.8,4.1,30.4,9.6,43.8,16.6c13.3,7,24.1,16.9,32.3,29.5c8.1,12.7,12.2,29.2,12.2,49.6c0,22.6-6.7,42.3-20,59.1
|
||||
c-13.4,16.8-32.3,29.8-56.7,39C3878.6,939.3,3849.4,944,3815.5,944z"/>
|
||||
<path class="st2" d="M4206.5,944c-30.8,0-57.9-5.8-81.5-17.3c-23.5-11.5-41.9-29.2-55-53s-19.7-53.7-19.7-90v-207h84.9v195.5
|
||||
c0,32.6,7.4,56.9,22.1,73s35.6,24.1,62.8,24.1c19.9,0,37.2-4.1,51.9-12.2c14.7-8.1,26.2-20.4,34.6-36.7s12.6-36.4,12.6-60.4V576.7
|
||||
h84.9v362.5h-80.8v-97.8l14.3,29.9c-12.2,23.5-30.1,41.5-53.6,54C4260.4,937.8,4234.6,944,4206.5,944z"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.2 KiB |
134
apps/kotatsu/v20250725/config/database.sql
Normal file
134
apps/kotatsu/v20250725/config/database.sql
Normal file
@@ -0,0 +1,134 @@
|
||||
drop table if exists favourites;
|
||||
|
||||
drop table if exists categories;
|
||||
|
||||
drop table if exists history;
|
||||
|
||||
drop table if exists manga_tags;
|
||||
|
||||
drop table if exists manga;
|
||||
|
||||
drop table if exists tags;
|
||||
|
||||
drop table if exists users;
|
||||
|
||||
create table manga
|
||||
(
|
||||
id bigint not null,
|
||||
title varchar(84) not null,
|
||||
alt_title varchar(84) null,
|
||||
url varchar(255) not null,
|
||||
public_url varchar(255) not null,
|
||||
rating float not null,
|
||||
content_rating char(12) null,
|
||||
cover_url varchar(255) not null,
|
||||
large_cover_url varchar(255) null,
|
||||
state char(12) null,
|
||||
author varchar(64) null,
|
||||
source varchar(32) not null,
|
||||
primary key (id)
|
||||
);
|
||||
|
||||
create table tags
|
||||
(
|
||||
id bigint not null,
|
||||
title varchar(64) not null,
|
||||
`key` varchar(120) not null,
|
||||
source varchar(32) not null,
|
||||
primary key (id)
|
||||
);
|
||||
|
||||
create table manga_tags
|
||||
(
|
||||
manga_id bigint not null,
|
||||
tag_id bigint not null,
|
||||
primary key (manga_id, tag_id),
|
||||
constraint manga_tags_ibfk_1
|
||||
foreign key (tag_id) references tags (id),
|
||||
constraint manga_tags_ibfk_2
|
||||
foreign key (manga_id) references manga (id)
|
||||
on delete cascade
|
||||
);
|
||||
|
||||
create index tag_id
|
||||
on manga_tags (tag_id);
|
||||
|
||||
create table users
|
||||
(
|
||||
id int auto_increment
|
||||
primary key,
|
||||
email varchar(120) not null,
|
||||
password char(32) not null,
|
||||
nickname varchar(84) null,
|
||||
favourites_sync_timestamp bigint null,
|
||||
history_sync_timestamp bigint null
|
||||
);
|
||||
|
||||
create table categories
|
||||
(
|
||||
id bigint not null,
|
||||
created_at bigint not null,
|
||||
sort_key int not null,
|
||||
title varchar(120) not null,
|
||||
`order` char(16) not null,
|
||||
user_id int not null,
|
||||
track tinyint(1) not null,
|
||||
show_in_lib tinyint(1) not null,
|
||||
deleted_at bigint not null,
|
||||
primary key (id, user_id),
|
||||
constraint categories_ibfk_1
|
||||
foreign key (user_id) references users (id)
|
||||
on delete cascade
|
||||
);
|
||||
|
||||
create index categories_id_index
|
||||
on categories (id);
|
||||
|
||||
create table favourites
|
||||
(
|
||||
manga_id bigint not null,
|
||||
category_id bigint not null,
|
||||
sort_key int not null,
|
||||
pinned tinyint(1) not null,
|
||||
created_at bigint not null,
|
||||
deleted_at bigint not null,
|
||||
user_id int not null,
|
||||
primary key (manga_id, category_id, user_id),
|
||||
constraint favourites_categories_id_pk
|
||||
foreign key (category_id, user_id) references categories (id, user_id),
|
||||
constraint favourites_ibfk_1
|
||||
foreign key (manga_id) references manga (id),
|
||||
constraint favourites_ibfk_2
|
||||
foreign key (user_id) references users (id)
|
||||
);
|
||||
|
||||
create index user_id
|
||||
on favourites (user_id);
|
||||
|
||||
create table history
|
||||
(
|
||||
manga_id bigint not null,
|
||||
created_at bigint not null,
|
||||
updated_at bigint not null,
|
||||
chapter_id bigint not null,
|
||||
page smallint not null,
|
||||
scroll double not null,
|
||||
percent double not null,
|
||||
chapters int not null,
|
||||
deleted_at bigint not null,
|
||||
user_id int not null,
|
||||
primary key (user_id, manga_id),
|
||||
constraint history_ibfk_1
|
||||
foreign key (manga_id) references manga (id),
|
||||
constraint history_ibfk_2
|
||||
foreign key (user_id) references users (id)
|
||||
on delete cascade
|
||||
);
|
||||
|
||||
create index manga_id
|
||||
on history (manga_id);
|
||||
|
||||
create unique index users_email_uindex
|
||||
on users (email);
|
||||
|
||||
|
||||
84
apps/kotatsu/v20250725/data.yml
Normal file
84
apps/kotatsu/v20250725/data.yml
Normal file
@@ -0,0 +1,84 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- child:
|
||||
default: ""
|
||||
envKey: PANEL_DB_HOST
|
||||
required: true
|
||||
type: service
|
||||
default: mysql
|
||||
edit: true
|
||||
envKey: PANEL_DB_TYPE
|
||||
labelZh: MySQL 服务 (前置检查)
|
||||
labelEn: Database Service (Pre-check)
|
||||
required: true
|
||||
type: apps
|
||||
values:
|
||||
- label: MySQL
|
||||
value: mysql
|
||||
- label: MariaDB
|
||||
value: mariadb
|
||||
- label: Percona
|
||||
value: percona
|
||||
- default: 8080
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: WebUI 端口
|
||||
labelEn: WebUI port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: JWT_SECRET
|
||||
labelZh: JWT 密钥
|
||||
labelEn: JWT secret
|
||||
required: true
|
||||
type: text
|
||||
- default: "127.0.0.1"
|
||||
edit: true
|
||||
envKey: DATABASE_HOST
|
||||
labelZh: 数据库 主机
|
||||
labelEn: Database Host
|
||||
required: true
|
||||
type: text
|
||||
- default: 3306
|
||||
edit: true
|
||||
envKey: DATABASE_PORT
|
||||
labelZh: 数据库 端口
|
||||
labelEn: Database Port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "kotatsu-syncserver"
|
||||
edit: true
|
||||
envKey: DATABASE_NAME
|
||||
labelZh: 数据库 名称
|
||||
labelEn: Database Name
|
||||
required: true
|
||||
type: text
|
||||
- default: "kotatsu-syncserver"
|
||||
edit: true
|
||||
envKey: DATABASE_USER
|
||||
labelZh: 数据库 用户名
|
||||
labelEn: Database Username
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: DATABASE_PASSWORD
|
||||
labelZh: 数据库 密码
|
||||
labelEn: Database Password
|
||||
required: true
|
||||
type: password
|
||||
- default: "true"
|
||||
edit: true
|
||||
envKey: ALLOW_NEW_REGISTER
|
||||
labelZh: 允许新用户注册
|
||||
labelEn: Allow new users to register
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 开放注册
|
||||
value: "true"
|
||||
- label: 禁止注册
|
||||
value: "false"
|
||||
20
apps/kotatsu/v20250725/docker-compose.yml
Normal file
20
apps/kotatsu/v20250725/docker-compose.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
kotatsu-syncserver:
|
||||
image: qyg2297248353/kotatsu-syncserver:v20250725
|
||||
container_name: ${CONTAINER_NAME}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8080
|
||||
env_file:
|
||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
2
apps/kotatsu/v20250725/envs/default.env
Normal file
2
apps/kotatsu/v20250725/envs/default.env
Normal file
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
||||
2
apps/kotatsu/v20250725/envs/global.env
Normal file
2
apps/kotatsu/v20250725/envs/global.env
Normal file
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
||||
17
apps/kotatsu/v20250725/scripts/init.sh
Normal file
17
apps/kotatsu/v20250725/scripts/init.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
10
apps/kotatsu/v20250725/scripts/uninstall.sh
Normal file
10
apps/kotatsu/v20250725/scripts/uninstall.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
17
apps/kotatsu/v20250725/scripts/upgrade.sh
Normal file
17
apps/kotatsu/v20250725/scripts/upgrade.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
Reference in New Issue
Block a user