Skip to content

-c 命令设置配置文件存放目录 #255

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lauglam opened this issue Feb 26, 2023 · 1 comment
Open

-c 命令设置配置文件存放目录 #255

lauglam opened this issue Feb 26, 2023 · 1 comment
Labels
good advice 优秀建议

Comments

@lauglam
Copy link

lauglam commented Feb 26, 2023

一、功能请求:

通过-c命令设置config目录的存放文字

二、功能使用例子:

设置当前目录为config目录的存放位置

aliyunpan -c . 接后续命令

三、好处:

  1. config配置目录的信息由aliyunpan自身管理,不需要export到环境变量
  2. 未来加入开机启动功能后可以通过以下方式进行设置
[Unit]
Description=aliyunpan daemon

[Service]
Type=simple
User=root
ExecStart=/usr/bin/aliyunpan -c /etc/aliyunpan/
Restart=on-failure

[Install]
WantedBy=multi-user.target
@xiaoyaofenfen
Copy link
Collaborator

好建议,后面有时间再看看哈

@xiaoyaofenfen xiaoyaofenfen added the good advice 优秀建议 label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good advice 优秀建议
Projects
None yet
Development

No branches or pull requests

2 participants