diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..6481e46 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +custom: ["https://afdian.com/a/cyrenenight"] \ No newline at end of file diff --git a/.github/workflows/beta-release.yml b/.github/workflows/beta-release.yml index c50b19e..18f48ca 100644 --- a/.github/workflows/beta-release.yml +++ b/.github/workflows/beta-release.yml @@ -2,8 +2,13 @@ name: Release to Beta on: push: tags: - - 'v[0-9]+.[0-9]+.[0-9]+-beta*' - - 'v[0-9]+.[0-9]+.[0-9]+-alpha*' + - 'v*.*.*-beta*' + - '*.*.*-beta*' + - 'v*.*.*-alpha*' + - '*.*.*-alpha*' + +permissions: + contents: write jobs: beta-release: @@ -16,37 +21,16 @@ jobs: - name: Get version from tag id: get_version run: | - VERSION=${GITHUB_REF#refs/tags/v} + TAG=${GITHUB_REF#refs/tags/} + VERSION=${TAG#v} + echo "TAG=$TAG" >> $GITHUB_OUTPUT echo "VERSION=$VERSION" >> $GITHUB_OUTPUT - - name: Update VERSION file - run: | - echo "${{ steps.get_version.outputs.VERSION }}" > VERSION - - - name: Update script version - run: | - sed -i "s/CURRENT_VERSION=\".*\"/CURRENT_VERSION=\"${{ steps.get_version.outputs.VERSION }}\"/" PVE-Tools.sh - - - name: Commit version changes - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git add VERSION PVE-Tools.sh - git commit -m "chore: update beta version to ${{ steps.get_version.outputs.VERSION }}" || echo "No changes to commit" - - - name: Push changes - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: beta - - name: Create GitHub Release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v2 with: - tag_name: ${{ github.ref }} - release_name: Beta Release ${{ github.ref }} + tag_name: ${{ steps.get_version.outputs.TAG }} + name: Beta Release ${{ steps.get_version.outputs.TAG }} body: | ## Beta 版本 ${{ steps.get_version.outputs.VERSION }} @@ -58,4 +42,6 @@ jobs: bash <(curl -sSL https://github.com/Mapleawaa/PVE-Tools-9/blob/beta/PVE-Tools.sh) ``` draft: false - prerelease: true \ No newline at end of file + prerelease: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index db239bb..d4afd48 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,8 +2,10 @@ name: Release to Main on: push: tags: - - 'v[0-9]+.[0-9]+.[0-9]+' - - 'v[0-9]+.[0-9]+.[0-9]+-stable' + - 'v*.*.*' + - '*.*.*' + - 'v*.*.*-stable' + - '*.*.*-stable' permissions: contents: write @@ -19,17 +21,11 @@ jobs: - name: Get version from tag id: get_version run: | - VERSION=${GITHUB_REF#refs/tags/v} + TAG=${GITHUB_REF#refs/tags/} + VERSION=${TAG#v} + echo "TAG=$TAG" >> $GITHUB_OUTPUT echo "VERSION=$VERSION" >> $GITHUB_OUTPUT - - name: Update VERSION file - run: | - echo "${{ steps.get_version.outputs.VERSION }}" > VERSION - - - name: Update script version - run: | - sed -i "s/CURRENT_VERSION=\".*\"/CURRENT_VERSION=\"${{ steps.get_version.outputs.VERSION }}\"/" PVE-Tools.sh - - name: Install shc run: | sudo add-apt-repository ppa:neurobin/ppa -y @@ -41,24 +37,11 @@ jobs: shc -f PVE-Tools.sh -o pve-tools chmod +x pve-tools - - name: Commit version changes - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git add VERSION PVE-Tools.sh - git commit -m "chore: update version to ${{ steps.get_version.outputs.VERSION }}" || echo "No changes to commit" - - - name: Push changes - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: main - - name: Generate release notes id: release_notes run: | # 生成基于提交历史的发布说明 - LATEST_TAG=${{ github.ref_name }} + LATEST_TAG=${{ steps.get_version.outputs.TAG }} # 尝试获取前一个 tag,如果没有则为空 PREVIOUS_TAG=$(git describe --tags --abbrev=0 $(git rev-list --tags --skip=1 --max-count=1) 2>/dev/null || echo "") @@ -73,10 +56,10 @@ jobs: echo "EOF" >> $GITHUB_OUTPUT - name: Create GitHub Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: - tag_name: ${{ github.ref }} - name: Release ${{ github.ref_name }} + tag_name: ${{ steps.get_version.outputs.TAG }} + name: Release ${{ steps.get_version.outputs.TAG }} body: | ## 版本 ${{ steps.get_version.outputs.VERSION }} @@ -102,4 +85,4 @@ jobs: draft: false prerelease: false env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/LICENSE b/LICENSE index 8704bcd..dc081ad 100644 --- a/LICENSE +++ b/LICENSE @@ -1,50 +1,674 @@ -GNU Lesser General Public License v3 (LGPL‑3.0) + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 -Copyright (C) 2007 Free Software Foundation, Inc. -Copyright (C) 2026 Ciriu Networks -Authors: 云汐月喵 + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. -Everyone is permitted to copy and distribute verbatim copies -of this license document, but changing it is not allowed. + Preamble -### Preamble + The GNU General Public License is a free, copyleft license for +software and other kinds of works. -The GNU Lesser General Public License is a free software license that -allows developers and companies to use and integrate software released -under this License into their own (even proprietary) software, with -certain conditions. However, if you modify the licensed code itself, -you must make your modifications available under the same license. + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. -### Terms and Conditions + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. -#### 0. Definitions -- “Library” refers to the covered work (PVE‑Tools‑9). -- “You” means an individual or legal entity using, modifying, or distributing the Library. -- “Source Code” means the preferred form for making modifications. + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. -#### 1. Source Code -You must make available the source code of the LGPL portions upon distribution, -including modifications or derivative works, under the same license. + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. -#### 2. Conveying Modified Versions -Modified versions must be licensed as a whole at no charge to all third parties -under the terms of this License. + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. -#### 3. Combined Works -You may combine this Library with other code. Terms of use of other code remain -subject to their own licenses. + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. -#### 4. Proprietary Use -You may use and distribute this Library in a proprietary program, provided you -comply with all terms of this License, including: + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. -- Relinking or providing object code for user relinking. -- Providing source for the LGPL components. + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. -#### 5. No Warranty -This Library is distributed without any warranty; without even the implied -warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + The precise terms and conditions for copying, distribution and +modification follow. ---- + TERMS AND CONDITIONS -For full license text, see: https://www.gnu.org/licenses/lgpl-3.0.html \ No newline at end of file + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. \ No newline at end of file diff --git a/NOTICE b/NOTICE new file mode 100644 index 0000000..3a9faf1 --- /dev/null +++ b/NOTICE @@ -0,0 +1,9 @@ +# NOTICE + +PVE-Tools-9 + +Copyright (C) 2026 Ciriu Networks +Author: 云汐月喵 + +This project is licensed under the GNU General Public License v3.0 (GPL-3.0). +See the LICENSE file for details. \ No newline at end of file diff --git a/PVE-Tools.sh b/PVE-Tools.sh index cc45389..5493829 100644 --- a/PVE-Tools.sh +++ b/PVE-Tools.sh @@ -1,15 +1,21 @@ #!/bin/bash +# SPDX-License-Identifier: GPL-3.0-only +# Copyright (C) 2026 Ciriu Networks +# Auther:Maple + +# 二次修改使用请不要删除此段注释 # PVE 9.0 配置工具脚本 # 支持换源、删除订阅弹窗、硬盘管理等功能 # 适用于 Proxmox VE 9.0 (基于 Debian 13) -# Auther:Maple 二次修改使用请不要删除此段注释 -# 请注意开源协议,请勿商用批量使用。 + # 版本信息 -CURRENT_VERSION="6.5.0" +CURRENT_VERSION="6.6.0" VERSION_FILE_URL="https://raw.githubusercontent.com/Mapleawaa/PVE-Tools-9/main/VERSION" UPDATE_FILE_URL="https://raw.githubusercontent.com/Mapleawaa/PVE-Tools-9/main/UPDATE" +PVE_VERSION_DETECTED="" +PVE_MAJOR_VERSION="" # ============ 颜色系统 ============ @@ -462,7 +468,7 @@ EOF echo "$UI_BORDER" echo -e " ${H1}PVE-Tools-9 一键脚本${NC}" echo " 让每个人都能体验虚拟化技术的的便利。" - echo -e " 作者: ${PINK}Maple${NC} & 提交PR的你们" + echo -e " 作者: ${PINK}Maple${NC} | 交流群: ${CYAN}1031976463${NC}" echo -e " 当前版本: ${GREEN}$CURRENT_VERSION${NC} | 最新版本: ${remote_version:-"未检测"}" echo "$UI_BORDER" } @@ -521,6 +527,8 @@ check_pve_version() { if [[ "$DEBUG_MODE" == "true" ]]; then log_warn "调试模式:跳过 PVE 版本检测" echo "请注意:您正在非 PVE 系统上运行此脚本,某些功能可能无法正常工作" + PVE_VERSION_DETECTED="debug" + PVE_MAJOR_VERSION="debug" return fi @@ -530,8 +538,302 @@ check_pve_version() { exit 1 fi - local pve_version=$(pveversion | head -n1 | cut -d'/' -f2 | cut -d'-' -f1) + local pve_version + pve_version="$(pveversion | head -n1 | cut -d'/' -f2 | cut -d'-' -f1)" + PVE_VERSION_DETECTED="$pve_version" + PVE_MAJOR_VERSION="$(echo "$pve_version" | cut -d'.' -f1)" log_info "太好了!检测到 PVE 版本: $pve_version" + + if [[ "$PVE_MAJOR_VERSION" != "9" ]]; then + clear + show_menu_header "高风险提示:非 PVE9 环境" + echo -e "${RED}警告:检测到当前不是 PVE 9.x(当前:${PVE_VERSION_DETECTED})。${NC}" + echo -e "${RED}本脚本面向 PVE 9.x(Debian 13 / trixie)编写。${NC}" + echo -e "${RED}在 PVE 7/8 等系统上执行“换源/升级/一键优化”等自动化修改,可能是毁灭性的:${NC}" + echo -e "${RED}可能导致软件源错配、系统升级路径错误、依赖冲突、宿主机不可用。${NC}" + echo -e "${UI_DIVIDER}" + echo -e "${YELLOW}严禁在非 PVE9 上使用的选项(脚本将强制拦截):${NC}" + echo -e " - 一键优化(换源+删弹窗+更新)" + echo -e " - 软件源与更新(更换软件源/更新系统软件包/PVE 8 升级到 9)" + echo -e "${UI_DIVIDER}" + echo -e "${CYAN}如你仍要继续使用脚本的其它功能,请手动输入以下任意一项以确认风险:${NC}" + echo -e " - 确认" + echo -e " - Confirm with Risks" + echo -e "${UI_DIVIDER}" + local ack ack_lc + read -r -p "请输入确认文本以继续(回车退出): " ack + if [[ -z "$ack" ]]; then + log_info "未确认风险,退出脚本" + exit 0 + fi + ack_lc="$(echo "$ack" | tr 'A-Z' 'a-z' | sed -E 's/[[:space:]]+/ /g' | sed -E 's/^ +| +$//g')" + if [[ "$ack" != "确认" && "$ack_lc" != "confirm with risks" ]]; then + log_error "确认文本不匹配,已退出" + exit 1 + fi + log_warn "已确认风险:当前为非 PVE9 环境,将拦截毁灭性自动化修改功能" + fi +} + +block_non_pve9_destructive() { + local feature="$1" + if [[ "$DEBUG_MODE" == "true" ]]; then + return 0 + fi + if [[ "${PVE_MAJOR_VERSION:-}" != "9" ]]; then + display_error "已拦截:非 PVE9 环境禁止执行该自动化操作" "功能:${feature}。请在 PVE9 上使用,或手动参考文档/自行处理。" + return 1 + fi + return 0 +} + +pve_mail_send_test() { + local from_addr="$1" + local to_addr="$2" + local subject="$3" + local body="$4" + + if ! command -v sendmail >/dev/null 2>&1; then + display_error "未找到 sendmail" "请确认 postfix 已安装并提供 sendmail。" + return 1 + fi + + { + echo "From: ${from_addr}" + echo "To: ${to_addr}" + echo "Subject: ${subject}" + echo + echo "${body}" + } | sendmail -f "${from_addr}" -t >/dev/null 2>&1 +} + +pve_mail_configure_postfix_smtp() { + local relay_host="$1" + local relay_port="$2" + local tls_mode="$3" + local sasl_user="$4" + local sasl_pass="$5" + + if ! command -v postconf >/dev/null 2>&1; then + display_error "未找到 postconf" "请先安装 postfix 并确保其命令可用。" + return 1 + fi + + local relay + relay="[${relay_host}]:${relay_port}" + + backup_file "/etc/postfix/main.cf" >/dev/null 2>&1 || true + postconf -e "relayhost = ${relay}" + postconf -e "smtp_use_tls = yes" + postconf -e "smtp_tls_security_level = encrypt" + postconf -e "smtp_sasl_auth_enable = yes" + postconf -e "smtp_sasl_security_options =" + postconf -e "smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd" + postconf -e "smtp_tls_CApath = /etc/ssl/certs" + postconf -e "smtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_tls_session_cache" + postconf -e "smtp_tls_session_cache_timeout = 3600s" + + if [[ "$tls_mode" == "wrapper" ]]; then + postconf -e "smtp_tls_wrappermode = yes" + else + postconf -e "smtp_tls_wrappermode = no" + fi + + local sasl_file="/etc/postfix/sasl_passwd" + backup_file "$sasl_file" >/dev/null 2>&1 || true + umask 077 + printf '%s %s:%s\n' "${relay}" "${sasl_user}" "${sasl_pass}" > "$sasl_file" + chmod 600 "$sasl_file" >/dev/null 2>&1 || true + + if ! command -v postmap >/dev/null 2>&1; then + display_error "未找到 postmap" "请确认 postfix 已安装完整。" + return 1 + fi + postmap "hash:${sasl_file}" >/dev/null 2>&1 || { + display_error "postmap 执行失败" "请检查 /etc/postfix/sasl_passwd 格式与权限。" + return 1 + } + + postfix reload >/dev/null 2>&1 || { + systemctl reload postfix >/dev/null 2>&1 || systemctl restart postfix >/dev/null 2>&1 || true + } + + return 0 +} + +pve_mail_configure_datacenter_emails() { + local from_addr="$1" + local root_addr="$2" + + if ! command -v pvesh >/dev/null 2>&1; then + display_error "未找到 pvesh" "请确认当前环境为 PVE 宿主机。" + return 1 + fi + + pvesh set /cluster/options --email-from "$from_addr" >/dev/null 2>&1 || { + display_error "设置“来自…邮件”失败" "请在 WebUI:数据中心 -> 选项 -> 电子邮件(From)中手动设置。" + return 1 + } + + pvesh set /access/users/root@pam --email "$root_addr" >/dev/null 2>&1 || { + display_error "设置 root 邮箱失败" "请在 WebUI:数据中心 -> 权限 -> 用户 -> root@pam 中手动设置邮箱。" + return 1 + } + + return 0 +} + +pve_mail_configure_zed_mail() { + local from_addr="$1" + local to_addr="$2" + + local zed_rc="/etc/zfs/zed.d/zed.rc" + if [[ ! -f "$zed_rc" ]]; then + log_warn "未找到 zed.rc(跳过 ZFS ZED 邮件配置)" + return 0 + fi + + backup_file "$zed_rc" >/dev/null 2>&1 || true + + if grep -qE '^ZED_EMAIL_ADDR=' "$zed_rc"; then + sed -i "s|^ZED_EMAIL_ADDR=.*|ZED_EMAIL_ADDR=\"${to_addr}\"|g" "$zed_rc" + else + printf '\nZED_EMAIL_ADDR="%s"\n' "$to_addr" >> "$zed_rc" + fi + + if grep -qE '^ZED_EMAIL_OPTS=' "$zed_rc"; then + sed -i "s|^ZED_EMAIL_OPTS=.*|ZED_EMAIL_OPTS=\"-r ${from_addr}\"|g" "$zed_rc" + else + printf 'ZED_EMAIL_OPTS="-r %s"\n' "$from_addr" >> "$zed_rc" + fi + + systemctl restart zfs-zed >/dev/null 2>&1 || true + return 0 +} + +pve_mail_notification_setup() { + block_non_pve9_destructive "配置邮件通知(SMTP)" || return 1 + log_step "配置 PVE 邮件通知(商业邮箱 SMTP)" + + if ! command -v postfix >/dev/null 2>&1 && ! command -v postconf >/dev/null 2>&1; then + display_error "未检测到 postfix" "请先安装 postfix 后再配置(安装过程可能需要交互)。" + return 1 + fi + + local from_addr root_addr + read -p "请输入“来自…邮件”(发件人邮箱): " from_addr + if [[ -z "$from_addr" ]]; then + display_error "发件人邮箱不能为空" + return 1 + fi + + read -p "请输入 root 通知邮箱(收件人邮箱): " root_addr + if [[ -z "$root_addr" ]]; then + display_error "收件人邮箱不能为空" + return 1 + fi + + local preset + echo -e "${CYAN}请选择 SMTP 预设:${NC}" + echo " 1) QQ 邮箱(smtp.qq.com:465 SSL)" + echo " 2) 163 邮箱(smtp.163.com:465 SSL)" + echo " 3) Gmail(smtp.gmail.com:587 STARTTLS)" + echo " 4) 自定义(SMTP 兼容)" + read -p "请选择 [1-4] (默认: 1): " preset + preset="${preset:-1}" + + local smtp_host smtp_port tls_mode + case "$preset" in + 1) smtp_host="smtp.qq.com"; smtp_port="465"; tls_mode="wrapper" ;; + 2) smtp_host="smtp.163.com"; smtp_port="465"; tls_mode="wrapper" ;; + 3) smtp_host="smtp.gmail.com"; smtp_port="587"; tls_mode="starttls" ;; + 4) + read -p "请输入 SMTP 服务器地址(如 smtp.xxx.com): " smtp_host + read -p "请输入 SMTP 端口(如 465/587): " smtp_port + read -p "TLS 模式(wrapper/starttls)[wrapper]: " tls_mode + tls_mode="${tls_mode:-wrapper}" + ;; + *) smtp_host="smtp.qq.com"; smtp_port="465"; tls_mode="wrapper" ;; + esac + + if [[ -z "$smtp_host" || -z "$smtp_port" ]]; then + display_error "SMTP 参数不完整" + return 1 + fi + if [[ "$tls_mode" != "wrapper" && "$tls_mode" != "starttls" ]]; then + display_error "TLS 模式无效" "仅支持 wrapper 或 starttls" + return 1 + fi + + local smtp_user smtp_pass + read -p "请输入 SMTP 登录账号(通常为邮箱地址)[${from_addr}]: " smtp_user + smtp_user="${smtp_user:-$from_addr}" + if [[ -z "$smtp_user" ]]; then + display_error "SMTP 账号不能为空" + return 1 + fi + + echo -n "请输入 SMTP 密码/授权码(输入不回显): " + read -r -s smtp_pass + echo + if [[ -z "$smtp_pass" ]]; then + display_error "SMTP 密码/授权码不能为空" + return 1 + fi + + clear + show_menu_header "邮件通知配置确认" + echo -e "${YELLOW}发件人(From):${NC} $from_addr" + echo -e "${YELLOW}收件人(root 邮箱):${NC} $root_addr" + echo -e "${YELLOW}SMTP 服务器:${NC} ${smtp_host}:${smtp_port}" + echo -e "${YELLOW}TLS 模式:${NC} ${tls_mode}" + echo -e "${YELLOW}SMTP 账号:${NC} ${smtp_user}" + echo -e "${UI_DIVIDER}" + echo -e "${RED}提醒:此功能会修改 postfix 配置并写入 SMTP 凭据文件。${NC}" + echo -e "${RED}请确保你使用的是邮箱提供商的 SMTP 授权码/应用专用密码,而非登录密码。${NC}" + echo -e "${UI_DIVIDER}" + + if ! confirm_action "开始应用配置并重载 postfix?"; then + return 0 + fi + + log_step "配置 PVE 数据中心邮件选项" + pve_mail_configure_datacenter_emails "$from_addr" "$root_addr" || return 1 + + log_step "安装 SASL 模块(libsasl2-modules)" + apt-get update >/dev/null 2>&1 || true + if ! apt-get install -y libsasl2-modules >/dev/null 2>&1; then + display_error "安装 libsasl2-modules 失败" "请检查网络与软件源。" + return 1 + fi + + log_step "配置 postfix 通过 SMTP 中继发信" + pve_mail_configure_postfix_smtp "$smtp_host" "$smtp_port" "$tls_mode" "$smtp_user" "$smtp_pass" || return 1 + + local test_choice="yes" + read -p "是否发送测试邮件?(yes/no) [yes]: " test_choice + test_choice="${test_choice:-yes}" + if [[ "$test_choice" == "yes" || "$test_choice" == "YES" ]]; then + log_step "发送测试邮件" + if pve_mail_send_test "$from_addr" "$root_addr" "PVE-Tools 邮件测试" "这是一封测试邮件:如果你收到,说明 SMTP 中继已可用。"; then + log_success "测试邮件已提交发送队列(请检查收件箱与垃圾箱)" + else + log_warn "测试邮件发送失败,请检查 postfix 日志与 SMTP 配置" + log_tips "可查看:journalctl -u postfix -n 200 或 tail -n 200 /var/log/mail.log" + fi + fi + + local zed_choice="no" + read -p "是否额外配置 ZFS ZED 邮件(ZFS 阵列事件通知)?(yes/no) [no]: " zed_choice + zed_choice="${zed_choice:-no}" + if [[ "$zed_choice" == "yes" || "$zed_choice" == "YES" ]]; then + log_step "配置 ZFS ZED 邮件参数" + pve_mail_configure_zed_mail "$from_addr" "$root_addr" || true + log_success "ZED 配置已处理(建议手动制造一次 ZFS 事件验证)" + fi + + display_success "邮件通知配置完成" "建议在 WebUI 里触发一次通知或检查系统事件确认生效。" + return 0 } # 检测当前内核版本 @@ -933,6 +1235,7 @@ backup_file() { # 换源功能 change_sources() { + block_non_pve9_destructive "更换软件源" || return 1 log_step "开始为您的 PVE 换上飞速源" # 根据选择的镜像源确定URL @@ -1076,6 +1379,7 @@ EOF # 删除订阅弹窗 remove_subscription_popup() { + block_non_pve9_destructive "删除订阅弹窗" || return 1 log_step "正在消除那个烦人的订阅弹窗" local js_file="/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js" @@ -1233,6 +1537,7 @@ remove_swap() { # 更新系统 update_system() { + block_non_pve9_destructive "更新系统软件包" || return 1 log_step "开始更新系统,让 PVE 保持最新状态 📦" echo -e "${CYAN}正在更新软件包列表...${NC}" @@ -1435,6 +1740,7 @@ rdm_discover_whole_disks() { local -A best_id_for_dev=() local -A best_pri_for_dev=() + local -A ata_id_for_dev=() local link while IFS= read -r -d '' link; do @@ -1471,6 +1777,10 @@ rdm_discover_whole_disks() { if [[ "$base_name" =~ ^scsi- ]]; then pri=30; fi if [[ "$base_name" =~ ^pci- ]]; then pri=40; fi + if [[ "$base_name" =~ ^ata- ]] && [[ -z "${ata_id_for_dev[$real_dev]:-}" ]]; then + ata_id_for_dev["$real_dev"]="$link" + fi + if [[ -z "${best_id_for_dev[$real_dev]:-}" || "$pri" -lt "${best_pri_for_dev[$real_dev]}" ]]; then best_id_for_dev["$real_dev"]="$link" best_pri_for_dev["$real_dev"]="$pri" @@ -1479,11 +1789,12 @@ rdm_discover_whole_disks() { local dev for dev in "${!best_id_for_dev[@]}"; do - local id_path size model + local id_path size model ata_path id_path="${best_id_for_dev[$dev]}" + ata_path="${ata_id_for_dev[$dev]:-}" size="$(lsblk -dn -o SIZE "$dev" 2>/dev/null | head -n 1)" model="$(lsblk -dn -o MODEL "$dev" 2>/dev/null | head -n 1)" - printf '%s|%s|%s|%s\n' "$id_path" "$dev" "${size:-?}" "${model:-?}" + printf '%s|%s|%s|%s|%s\n' "$id_path" "$dev" "${size:-?}" "${model:-?}" "$ata_path" done | sort -t'|' -k2,2 } @@ -1531,7 +1842,15 @@ rdm_single_disk_attach() { fi echo -e "${CYAN}可直通磁盘列表(完整磁盘):${NC}" - echo "$disks" | awk -F'|' '{printf " [%d] %-55s -> %-12s %-8s %s\n", NR, $1, $2, $3, $4}' + echo "$disks" | awk -F'|' '{ + ata=$5; + if (ata == "") ata="-"; + else { + n=split(ata,a,"/"); + ata=a[n]; + } + printf " [%d] %-55s -> %-12s %-8s %-28s ATA:%s\n", NR, $1, $2, $3, $4, ata + }' echo -e "${UI_DIVIDER}" local pick @@ -4279,6 +4598,7 @@ third_party_tools_menu() { # PVE8 to PVE9 升级功能 pve8_to_pve9_upgrade() { + block_non_pve9_destructive "PVE 8.x 升级到 PVE 9.x" || return 1 log_step "开始 PVE 8.x 升级到 PVE 9.x" # 检查当前 PVE 版本 @@ -4693,15 +5013,17 @@ menu_optimization() { show_menu_option "2" "温度监控管理 ${CYAN}(CPU/硬盘监控设置)${NC}" show_menu_option "3" "CPU 电源模式配置" show_menu_option "4" "${MAGENTA}一键优化 (换源+删弹窗+更新)${NC}" + show_menu_option "5" "配置邮件通知 ${CYAN}(SMTP/Postfix)${NC}" echo "$UI_DIVIDER" show_menu_option "0" "返回主菜单" show_menu_footer - read -p "请选择操作 [0-4]: " choice + read -p "请选择操作 [0-5]: " choice case $choice in 1) remove_subscription_popup ;; 2) temp_monitoring_menu ;; 3) cpupower ;; 4) quick_setup ;; + 5) pve_mail_notification_setup ;; 0) return ;; *) log_error "无效选择" ;; esac @@ -4900,6 +5222,313 @@ manage_vm_schedule() { done } +img_bytes_to_human() { + local bytes="$1" + if [[ -z "$bytes" || ! "$bytes" =~ ^[0-9]+$ ]]; then + echo "?" + return 0 + fi + awk -v b="$bytes" 'BEGIN{ + split("B KB MB GB TB PB", u, " "); + i=1; x=b; + while (x>=1024 && i<6) {x/=1024; i++} + if (i==1) printf "%d%s", b, u[i]; + else printf "%.1f%s", x, u[i]; + }' +} + +img_discover_img_files() { + local roots=("/root" "/var/lib/vz/template/iso" "/home") + local root + for root in "${roots[@]}"; do + if [[ -d "$root" ]]; then + find "$root" -xdev -type f \( -iname '*.img' \) -printf '%p|%s|%TY-%Tm-%Td %TH:%TM\n' 2>/dev/null || true + fi + done +} + +img_select_img_file() { + local files + files="$(img_discover_img_files)" + if [[ -z "$files" ]]; then + log_error "未发现 .img 文件" + log_tips "已扫描目录:/root、/var/lib/vz/template/iso、/home" + return 1 + fi + + { + echo -e "${CYAN}已发现 .img 文件:${NC}" + echo "$files" | awk -F'|' ' + function human(x, u,i){ + split("B KB MB GB TB PB", u, " "); + i=1; + while (x>=1024 && i<6){x/=1024;i++} + if (i==1) return sprintf("%d%s", x, u[i]); + return sprintf("%.1f%s", x, u[i]); + } + { + printf " [%d] %-9s %-16s %s\n", NR, human($2), $3, $1 + }' + echo -e "${UI_DIVIDER}" + } >&2 + + local pick + read -p "请选择镜像序号 (0 返回): " pick + pick="${pick:-0}" + if [[ "$pick" == "0" ]]; then + return 2 + fi + if [[ ! "$pick" =~ ^[0-9]+$ ]]; then + log_error "序号必须是数字" + return 1 + fi + + local line path + line="$(echo "$files" | awk -F'|' -v n="$pick" 'NR==n{print $0}')" + path="$(echo "$line" | awk -F'|' '{print $1}')" + if [[ -z "$path" || ! -f "$path" ]]; then + log_error "无效选择" + return 1 + fi + echo "$path" + return 0 +} + +img_select_vmid() { + local vms + vms="$(qm list 2>/dev/null | awk 'NR>1{print $1 "|" $2 "|" $3}')" + if [[ -z "$vms" ]]; then + log_error "未发现虚拟机" + log_tips "请先创建虚拟机后再操作。" + return 1 + fi + + { + echo -e "${CYAN}可用虚拟机列表:${NC}" + echo "$vms" | awk -F'|' '{printf " [%d] VMID: %-6s Name: %-22s Status: %s\n", NR, $1, $2, $3}' + echo -e "${UI_DIVIDER}" + } >&2 + + local pick + read -p "请选择虚拟机序号 (0 返回): " pick + pick="${pick:-0}" + if [[ "$pick" == "0" ]]; then + return 2 + fi + if [[ ! "$pick" =~ ^[0-9]+$ ]]; then + log_error "序号必须是数字" + return 1 + fi + + local line vmid + line="$(echo "$vms" | awk -F'|' -v n="$pick" 'NR==n{print $0}')" + vmid="$(echo "$line" | awk -F'|' '{print $1}')" + if [[ -z "$vmid" ]]; then + log_error "无效选择" + return 1 + fi + if ! validate_qm_vmid "$vmid"; then + return 1 + fi + echo "$vmid" + return 0 +} + +img_select_storage() { + local stores + stores="$(pvesm status 2>/dev/null | awk 'NR>1{print $1 "|" $2}')" + if [[ -z "$stores" ]]; then + local manual + read -p "未能获取存储列表,请手动输入存储名(如 local-lvm): " manual + if [[ -z "$manual" ]]; then + log_error "存储名不能为空" + return 1 + fi + echo "$manual" + return 0 + fi + + { + echo -e "${CYAN}可用存储列表:${NC}" + echo "$stores" | awk -F'|' '{printf " [%d] %-18s (%s)\n", NR, $1, $2}' + echo -e "${UI_DIVIDER}" + } >&2 + + local pick + read -p "请选择存储序号 (0 返回): " pick + pick="${pick:-0}" + if [[ "$pick" == "0" ]]; then + return 2 + fi + if [[ ! "$pick" =~ ^[0-9]+$ ]]; then + log_error "序号必须是数字" + return 1 + fi + + local line store + line="$(echo "$stores" | awk -F'|' -v n="$pick" 'NR==n{print $0}')" + store="$(echo "$line" | awk -F'|' '{print $1}')" + if [[ -z "$store" ]]; then + log_error "无效选择" + return 1 + fi + echo "$store" + return 0 +} + +img_convert_and_import_to_vm() { + log_step "IMG 镜像转换并导入虚拟机" + + if ! command -v qemu-img >/dev/null 2>&1; then + display_error "未找到 qemu-img" "请先安装:apt install -y qemu-utils" + return 1 + fi + if ! command -v qm >/dev/null 2>&1; then + display_error "未找到 qm 命令" "请确认当前环境为 PVE 宿主机。" + return 1 + fi + + local img_path + img_path="$(img_select_img_file)" + local rc=$? + if [[ "$rc" -eq 2 ]]; then + return 0 + fi + if [[ -z "$img_path" ]]; then + return 1 + fi + + local vmid + vmid="$(img_select_vmid)" + rc=$? + if [[ "$rc" -eq 2 ]]; then + return 0 + fi + if [[ -z "$vmid" ]]; then + return 1 + fi + + local store + store="$(img_select_storage)" + rc=$? + if [[ "$rc" -eq 2 ]]; then + return 0 + fi + if [[ -z "$store" ]]; then + return 1 + fi + + local out_fmt + read -p "请选择目标格式 (qcow2/raw) [qcow2]: " out_fmt + out_fmt="${out_fmt:-qcow2}" + if [[ "$out_fmt" != "qcow2" && "$out_fmt" != "raw" ]]; then + display_error "不支持的格式: $out_fmt" "仅支持 qcow2/raw" + return 1 + fi + + local ts ext out_path out_dir + ts="$(date +%Y%m%d_%H%M%S)" + ext="$out_fmt" + out_dir="$(dirname "$img_path")" + out_path="${out_dir}/vm-${vmid}-disk-import-${ts}.${ext}" + if [[ -e "$out_path" ]]; then + out_path="${out_dir}/vm-${vmid}-disk-import-${ts}-1.${ext}" + fi + + clear + show_menu_header "IMG 镜像转换并导入虚拟机" + local sz + sz="$(stat -c '%s' "$img_path" 2>/dev/null || echo "")" + echo -e "${YELLOW}源镜像:${NC} $img_path" + if [[ -n "$sz" ]]; then + echo -e "${YELLOW}大小:${NC} $(img_bytes_to_human "$sz")" + fi + echo -e "${YELLOW}目标 VMID:${NC} $vmid" + echo -e "${YELLOW}目标存储:${NC} $store" + echo -e "${YELLOW}目标格式:${NC} $out_fmt" + echo -e "${YELLOW}临时输出:${NC} $out_path" + echo -e "${UI_DIVIDER}" + + if ! confirm_action "开始转换并导入磁盘?"; then + return 0 + fi + + log_step "开始转换(qemu-img convert)" + if ! qemu-img convert -p -f raw -O "$out_fmt" "$img_path" "$out_path"; then + display_error "镜像转换失败" "请检查镜像文件是否为 raw 格式,或查看日志输出。" + return 1 + fi + + log_step "开始导入(qm importdisk)" + local import_out vol + if ! import_out="$(qm importdisk "$vmid" "$out_path" "$store" 2>&1)"; then + echo "$import_out" | sed 's/^/ /' + display_error "导入失败" "请检查存储名称与空间,或查看上方输出。" + return 1 + fi + + vol="$(echo "$import_out" | sed -n "s/.*as '\\([^']\\+\\)'.*/\\1/p" | tail -n 1)" + [[ -z "$vol" ]] && vol="$(echo "$import_out" | grep -oE "${store}:[^ ]+" | tail -n 1)" + + if [[ -n "$vol" ]]; then + log_success "导入完成: $vol" + else + log_success "导入完成" + fi + + local attach_bus attach_slot cfg + local auto_attach="yes" + read -p "是否自动挂载到 VM?(yes/no) [yes]: " auto_attach + auto_attach="${auto_attach:-yes}" + if [[ "$auto_attach" == "yes" || "$auto_attach" == "YES" ]]; then + read -p "请选择总线类型 (scsi/sata/ide) [scsi]: " attach_bus + attach_bus="${attach_bus:-scsi}" + if [[ "$attach_bus" != "scsi" && "$attach_bus" != "sata" && "$attach_bus" != "ide" ]]; then + log_warn "不支持的总线类型,跳过自动挂载: $attach_bus" + else + cfg="$(qm config "$vmid" 2>/dev/null || true)" + if [[ -n "$vol" && -n "$cfg" ]] && echo "$cfg" | grep -Fq "$vol"; then + log_info "检测到该卷已写入 VM 配置(可能为 unusedX 或已挂载),跳过自动挂载。" + elif [[ -z "$vol" ]]; then + log_info "未能解析导入卷 ID,跳过自动挂载。" + else + attach_slot="$(rdm_find_free_slot "$vmid" "$attach_bus" 2>/dev/null)" || true + if [[ -z "$attach_slot" ]]; then + log_warn "未找到可用插槽,跳过自动挂载" + else + if confirm_action "将磁盘挂载到 VM $vmid(${attach_slot} = ${vol})"; then + if qm set "$vmid" "-$attach_slot" "$vol" >/dev/null 2>&1; then + log_success "已挂载: $attach_slot" + else + log_warn "自动挂载失败,请在 PVE WebUI 中手动添加该磁盘" + fi + fi + fi + fi + fi + fi + + local del_tmp="yes" + read -p "是否删除临时输出文件 $out_path ?(yes/no) [yes]: " del_tmp + del_tmp="${del_tmp:-yes}" + if [[ "$del_tmp" == "yes" || "$del_tmp" == "YES" ]]; then + rm -f "$out_path" >/dev/null 2>&1 || true + fi + + display_success "处理完成" "如需从该磁盘引导,请在 VM 启动顺序中选择对应磁盘。" + return 0 +} + +img_convert_import_menu() { + clear + show_menu_header "IMG 镜像导入(转换为 QCOW2/RAW)" + echo -e "${CYAN}功能说明:${NC}" + echo -e " - 自动扫描:/root、/var/lib/vz/template/iso、/home 下的 .img 文件" + echo -e " - 使用 qemu-img 转换后,通过 qm importdisk 导入到指定 VM 与存储" + echo -e "${UI_DIVIDER}" + img_convert_and_import_to_vm +} + # 二级菜单:虚拟机与容器 menu_vm_container() { while true; do @@ -4908,14 +5537,16 @@ menu_vm_container() { show_menu_option "1" "${CYAN}FastPVE${NC} - 虚拟机快速下载" show_menu_option "2" "${CYAN}Community Scripts${NC} - 第三方工具集" show_menu_option "3" "虚拟机/容器定时开关机" + show_menu_option "4" "IMG 镜像导入(转 QCOW2/RAW)" echo "$UI_DIVIDER" show_menu_option "0" "返回主菜单" show_menu_footer - read -p "请选择操作 [0-3]: " choice + read -p "请选择操作 [0-4]: " choice case $choice in 1) fastpve_quick_download_menu ;; 2) third_party_tools_menu ;; 3) manage_vm_schedule ;; + 4) img_convert_import_menu ;; 0) return ;; *) log_error "无效选择" ;; esac @@ -4989,6 +5620,7 @@ menu_tools_about() { # 一键配置 quick_setup() { + block_non_pve9_destructive "一键优化(换源+删弹窗+更新)" || return 1 log_step "开始一键配置" log_step "天涯若比邻,海内存知己,坐和放宽,让我来搞定一切。" echo diff --git a/README.md b/README.md index e7380c9..1e06d26 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@
你的下一个简单好用,简洁易用的 PVE9 配置脚本 -[文档](https://pve.u3u.icu) | [更新日志](https://pve.u3u.icu/update) | [疑难解答](https://pve.u3u.icu/faq) +[文档](https://pve.u3u.icu) | [更新日志](https://pve.u3u.icu/update) | [疑难解答](https://pve.u3u.icu/faq) | [赞助喵!](https://pve.u3u.icu/sponsor) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Shell Script](https://img.shields.io/badge/Shell-Script-4EAA25?logo=gnu-bash&logoColor=white)](https://www.gnu.org/software/bash/) @@ -29,20 +29,20 @@ bash <(curl -sSL https://ghfast.top/raw.githubusercontent.com/Mapleawaa/PVE-Tool ``` bash <(curl -sSL https://raw.githubusercontent.com/Mapleawaa/PVE-Tools-9/main/PVE-Tools.sh) ``` + +> [!NOTE] +> 想加入用户交流群?点击这里加入 [QQ群](https://qun.qq.com/universal-share/share?ac=1&authKey=WFmy%2BxG1k%2Brc6%2B4zEdURmihOrSdNsi%2BsgvyFSYsTcoG7DQr937Z%2BeIbNSjQxM%2BZx&busi_data=eyJncm91cENvZGUiOiIxMDMxOTc2NDYzIiwidG9rZW4iOiJVOHl5dEYzai9TVS9rbFhGUmgwTzRMQ0tFY0llVkZEbnR3dDZPbzNlNno2TDN2WDZQdDdqQldqQ2U4OWxFMGNxIiwidWluIjoiMTUyMDk0MjYyMSJ9&data=xZ9BNcGDjqHr3YBYrEviIev4mXAVYi8p_9_uqrt5zpv5TtYYUC191c08PbmwX2ThLlx_djc8Hz_uz6r-7lzavg&svctype=4&tempid=h5_group_info) + > [!WARNING] > 请不要多次拉取文件,无论镜像站还是源站。否则会被服务器拒绝导致影响心情。 --- -### 公告 - -> [!IMPORTANT] -> 显卡拆分/直通 已新开仓库使用其他语言编写脚本。 -> 详细请看 👉 [N卡拆分仓库](https://github.com/Mapleawaa/NVIDIA-vGPU-Script-For-PVE) | [显卡直通脚本仓库](https://github.com/Mapleawaa/GPU-Pathrough-Script-For-PVE) -> 更新:已停更。享年三个星期。 - -> [!WARNING] -> 3.0.0 起已加入 Proxmox 安全软件源,建议尽快更新以避免潜在安全风险。 +### 🔔 公告 +[官网已上线!点我查看!](https://pve.u3u.icu) +[更新日志点我查看!](https://pve.u3u.icu/update) +[疑难解答点我查看!](https://pve.u3u.icu/faq) +[赞助喵!](https://pve.u3u.icu/sponsor) ### 📖 项目简介 @@ -82,38 +82,22 @@ chmod +x PVE-Tools.sh sudo ./PVE-Tools.sh ``` ## 📁 文档知识库 -官方文档:[https://s.ow0.icu](https://s.ow0.icu) (推荐) -备用地址:[https://docs.302200.xyz/pve](https://docs.302200.xyz/pve) +官方文档:https://pve.u3u.icu (推荐) --- ## 📄 开源协议 -本项目采用 MIT 协议发布,详见 [LICENSE](LICENSE) 文件。 +本项目采用 **GPL-3.0** 许可证(详见 `LICENSE`)。 -``` -MIT License +- 版权所有 (C) 2026 Ciriu Networks +- 作者:云汐月喵 -Copyright (c) 2025 Sovitx IO +## 免责声明 -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +这是一份用于 Proxmox VE(PVE)的系统配置工具。 +使用风险自担,详见 [用户许可协议](https://pve.u3u.icu/ula)。 -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -``` ## 🙏 特别感谢 @@ -123,9 +107,6 @@ SOFTWARE. -特别感谢以下贡献者: -- **[Mapleawaa](https://github.com/Mapleawaa)** - 项目创始人与主要维护者 -- **[Claude Code (Anthropic)](https://claude.ai)** - AI 代码助手,参与第三方工具集成、代码重构与优化 ### 🏛️ 相关组织与项目 @@ -143,11 +124,6 @@ SOFTWARE. - 感谢代码参考:https://zhichao.org/posts/e0fe08 - 参考了众多开源项目的最佳实践 -### 🎨 设计与界面 - -- **ASCII 字符画** - 字符画设计灵感来源于社区创作 -- **配色方案** - 配色参考了现代终端美学 - ---
@@ -162,7 +138,7 @@ SOFTWARE. -[![GitHub](https://img.shields.io/badge/GitHub-SovitxNetworks-181717?logo=github&logoColor=white)](https://github.com/Mapleawaa) +[![GitHub](https://img.shields.io/badge/GitHub-Ciriu-181717?logo=github&logoColor=white)](https://github.com/Mapleawaa)
diff --git a/UPDATE b/UPDATE index 52c915a..e7e97fa 100644 --- a/UPDATE +++ b/UPDATE @@ -1,6 +1,7 @@ -feat: NVIDIA 显卡管理 +feat: 邮件通知引导 + IMG 导入 + 非 PVE9 风险防护 -- 新增 NVIDIA 显卡管理一级菜单:显卡直通虚拟机、vGPU 配置与分配、驱动信息与监控、驱动切换与回滚 -- 优化无 NVIDIA GPU 环境的交互体验:缺少设备时不再出现输出错乱与异常提示 -- 启动新增许可同意界面:首次运行需同意条款,条款详情见文档站链接(Y/N 即可) -- 文档站新增 TOS 与 ULA 两个独立页面,并加入导航入口 +- 新增邮件通知自动化引导:配置数据中心 From/root 邮箱、Postfix SMTP 中继(QQ/163/Gmail/自定义)、可选测试邮件与 ZFS ZED 邮件选项 +- 新增 IMG 镜像导入:自动扫描指定目录 .img,支持转换为 qcow2/raw 并导入到指定 VM 与存储,可选自动挂载 +- 增强非 PVE9 使用防护:启动强制风险确认,并拦截换源/更新/一键优化/升级等高风险自动化操作 +- 硬盘直通列表新增 ATA 标识列:显示 ata-* by-id,便于区分 wwn 信息不直观的硬盘 +- 文档站拆分 TOS 与 ULA 页面,并更新导航入口 diff --git a/VERSION b/VERSION index f22d756..826f5ce 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.5.0 +6.6.0 diff --git a/Web/sponsor.md b/Web/sponsor.md new file mode 100644 index 0000000..1ce9a93 --- /dev/null +++ b/Web/sponsor.md @@ -0,0 +1,42 @@ +--- +title: 赞助和加群 +description: 赞助我,加入我们的 QQ 群,与其他用户分享经验、交流问题、获取最新动态。 +--- +# 💰 赞助以及支持 Sponsors + +::: info 💡 为什么要开展赞助工作? +如果 PVE-Tools 刚才救了命,或是正打算运用它大干一场,请记住:开源虽然是凭借爱心发电,但测试服务器电费、节点流量以及开展修复 Bug 工作所消耗的咖啡,都需要真金白银。要是觉得这个脚本好用,不妨凭借钞能力支持一下,这是让项目得以持续更新的最强动力。 +::: + +## 🎯 唯一指定的赞助渠道 + +👉 **[点击此处跳转至爱发电](https://afdian.com/a/cyrenenight)** 👈 + +*(支持通过微信以及支付宝来直接进行扫码)* + +--- + +## 📦 赞助档位以及专属权益 + +此处提供了从“随手丢硬币”到“全天候赛博抢救”的不同档位,请根据需求以及财力来开展选择: + +| 档位级别 | 赞助金额 | 权益说明 | 适合人群 | +| :--- | :--- | :--- | :--- | +| **🚁 运用一瓶牢大!** | ¥ 5.00 / 月 | 打赏一瓶牢大,让更新得以加速!属于纯粹的精神支持。 | 刚把脚本运用完,顺便进行打赏的乐子人。 | +| **🚀 赛博功德** | ¥ 28.88 / 月 | 会拥有群内专属头衔,以及新功能所对应的 **优先内测推送权**。 | 重度使用者,想要体验最新前沿特性的极客。 | +| **🍗 疯狂星期四** | ¥ 50.00 / 月 | ID 会被 **永久刻在项目的 GitHub README 赞助者名单当中**。 | 想在开源界留下足迹,从而展现钞能力的金主。 | +| **🩺 赛博华佗** | ¥ 88.88 / 月 | **核心金主专属 SLA 服务。**
在赞助后留言并附上联系方式,**以此来加好友**。PVE 炸了?网桥配置毁了?会提供力所能及的一对一“赛博抢救”。*(注:并非全天候随叫随到,但保底提供精准排错思路)* | 瞎折腾把自己干碎,急需大佬进行兜底的“VIP 客户”。 | +| **🪙 赛博功德箱** | 自选金额 | 多少全凭缘分,会直接转化为服务器机柜的冷气以及防脱发洗发水。 | 随心所欲的赛博散财童子。 | + +--- + +## 💬 交流以及反馈 遇到 Bug 先看这里 + +脚本要是报错了别光顾着砸键盘,可以加入群聊或者去 GitHub 提交 Issue。 + +- **🐧 官方 QQ 群**: `1031976463` +- **🔑 入群密码**: `PVE-Tools-9` + +::: warning ⚠️ 丑话说在前面 +群内会提供基础的技术交流以及吹水环境。但如果是需要耗费大量时间的底层疑难杂症排查,或者手把手的网络重构教学,那就请自觉选用 **赛博华佗 ¥88.88** 档位。由于作者精力有限,无法为所有人提供无底线的免费 1v1 运维服务,希望能够理解。 +::: diff --git a/Web/tos.md b/Web/tos.md index f70dfd2..4002d1c 100644 --- a/Web/tos.md +++ b/Web/tos.md @@ -3,92 +3,69 @@ title: TOS description: 服务条款(Terms of Service / TOS) --- -# 服务条款(Terms of Service / TOS) +# 服务条款(TOS) **项目**:PVE-Tools-9 -**作者**:云汐月喵 **版权所有**:Copyright (C) 2026 Ciriu Networks -**生效日期**:2026-__-__(按需填写) -**版本**:1.0 +**作者**:云汐月喵 +**生效日期**:2026-1-1 +**版本**:1.0.1 -> 本 TOS 适用于你使用与本项目相关的“服务/资源”,包括但不限于: -> GitHub 仓库页面、Issues、Discussions、Wiki、Release、CI 产物说明、文档与社区支持渠道。 -> -> 代码的许可使用请以 `LICENSE`(LGPLv3)为准;本 TOS 不改变开源许可已授予的权利。 +> 本 TOS 适用于你使用与本项目相关的社区/服务资源:GitHub 仓库、Issues、Discussions、Wiki、Release 与文档等。 +> 代码许可使用以 `LICENSE`(GPLv3)为准;本 TOS 不改变开源许可已授予的权利。 --- ## 1. 接受条款 -你访问、浏览、提交 Issue/PR、参与讨论或以任何形式使用本项目相关服务,即表示你同意本 TOS。 +你访问、浏览、提交 Issue/PR、参与讨论或使用项目资源,即表示你同意本条款。 --- -## 2. 社区行为规范(Acceptable Use) +## 2. 可接受使用(社区行为规范) -你同意在参与项目社区时遵守以下规则: +你不得在社区中发布或传播以下内容: -2.1 不发布违法、侵权、诽谤、骚扰、歧视、威胁、露骨仇恨或其他不当内容。 -2.2 不进行垃圾信息、刷屏、恶意引战、诱导性链接传播或钓鱼行为。 -2.3 不提交包含恶意代码、后门、漏洞利用、敏感数据(如真实密码、私钥、令牌)的内容。 -2.4 遵守 GitHub 平台规则及其社区准则;如有冲突,以平台规则为准。 +- 违法、侵权、诽谤、骚扰、歧视、仇恨或威胁性内容 +- 垃圾信息、刷屏、钓鱼链接或恶意引战 +- 恶意代码、后门、漏洞利用细节(可被立即滥用)、或敏感数据(密码/私钥/令牌等) + +你应遵守 GitHub 平台规则;如与本条款冲突,以平台规则为准。 --- -## 3. 服务可用性与无 SLA +## 3. 无 SLA 与服务变更 -3.1 本项目按“现状/可获得”提供社区服务与资源,不承诺持续可用、不承诺响应时效、不提供 SLA。 -3.2 我们可随时调整、暂停或停止任何服务内容(包括但不限于关闭 Issues、归档仓库、停止维护)。 +项目资源按“现状/可获得”提供,不承诺持续可用与响应时效。 +我们可随时调整、暂停或停止任何社区功能或维护状态。 --- -## 4. 用户内容与贡献许可(User Content & Contributions) +## 4. 贡献与内容许可 -4.1 你在 Issues、Discussions、PR、代码提交、文档修订等场景中提交的内容(统称“贡献”)可能被公开展示、存档与传播。 -4.2 你声明你有权提交该贡献,且该贡献不侵犯任何第三方权利。 -4.3 除非你明确标注其他许可并经我们接受,你的贡献将默认在本项目的开源许可策略下被使用与再发布(例如随项目一起分发),并可能被我们用于改进软件与文档。 +你提交的 Issue/PR/讨论内容可能被公开展示、存档与传播。 +你声明你有权提交该内容且不侵权。 +除非你明确标注并经我们接受其他许可,你的贡献将默认允许被项目用于维护与发布(与项目许可策略保持一致)。 --- -## 5. 安全与漏洞披露 +## 5. 免责声明 -5.1 若你发现安全漏洞,请避免在公开 Issue 中直接披露可被立即利用的细节。 -5.2 我们建议采用“负责任披露”的方式提交最小必要信息,并给出复现条件与缓解建议(如适用)。 +我们不对社区内容(包括他人提供的建议、脚本片段、链接内容)作任何保证。 +你应自行判断、验证并承担风险。与软件使用相关的免责与责任限制参见 `ULA.md`。 --- -## 6. 免责声明与责任限制 +## 6. 执行与处置 -6.1 与软件本身相关的免责声明与责任限制请参见 `ULA`;本 TOS 同样不承担因你使用社区资源(文档、讨论建议、示例配置)导致的任何损失。 -6.2 我们不对第三方在讨论区提供的建议、脚本片段、链接内容作任何保证;你应自行判断与验证。 +我们可自行判断并采取必要措施,包括删除内容、锁定讨论、拒绝合并或限制参与等。 --- -## 7. 隐私 +## 7. 条款变更 -7.1 本项目通常不主动收集你的个人信息;社区交互数据主要由 GitHub 平台处理并受其隐私政策约束。 -7.2 若未来引入独立的数据收集或遥测机制,我们将以仓库文档形式进行说明并提供可选开关(如适用)。 +我们可发布新版本条款。你继续使用服务即视为接受更新内容。 --- -## 8. 执行与处置(Moderation) - -8.1 我们可自行判断并采取必要措施,包括但不限于:删除内容、锁定讨论、拒绝合并、限制参与、上报平台等。 -8.2 对处置决定,我们一般不承担解释义务,但会尽量保持透明与一致性。 - ---- - -## 9. 条款变更 - -我们可通过仓库发布新版本的方式更新本 TOS。你在更新后继续使用服务即视为接受更新内容。 - ---- - -## 10. 其他 - -10.1 **可分割性**:部分条款无效不影响其余条款。 -10.2 **完整协议**:本 TOS 仅规范服务与社区参与,不替代或削减 `LICENSE`(LGPLv3)的法律效力。 - ---- - -(完) +(完) \ No newline at end of file diff --git a/Web/ula.md b/Web/ula.md index f0f3650..552df1a 100644 --- a/Web/ula.md +++ b/Web/ula.md @@ -6,110 +6,75 @@ description: 最终用户许可与使用协议(ULA) # 最终用户许可与使用协议(ULA) **项目**:PVE-Tools-9 -**作者**:云汐月喵 **版权所有**:Copyright (C) 2026 Ciriu Networks -**生效日期**:2026-__-__(按需填写) -**版本**:1.0 +**作者**:云汐月喵 +**生效日期**:2026-1-1 +**版本**:1.0.1 -> 重要说明:本项目为开源软件,源代码的复制、修改与分发受 **GNU Lesser General Public License v3.0(LGPLv3)** 约束(见仓库 `LICENSE` 文件)。 -> -> 本《最终用户许可与使用协议》(ULA)用于补充说明**使用风险、支持边界、免责声明、责任限制**等事项。 -> **如本 ULA 与 LGPLv3 存在任何冲突或不一致,以 LGPLv3 为准。** +> 重要说明:本项目为开源软件,源代码的复制、修改与分发受 `LICENSE` 中 **GNU General Public License v3.0(GPLv3)** 约束。 +> 本 ULA 用于补充说明使用风险、免责声明、责任限制与支持边界。 +> **如本 ULA 与 GPLv3 存在冲突或不一致,以 GPLv3 为准。** --- ## 1. 定义 -1.1 **“软件”**:指本项目 PVE-Tools-9 以及其随附脚本、配置模板、文档与示例(统称“软件”)。 -1.2 **“授权方/我们”**:指 Ciriu Networks 与本项目作者及贡献者。 -1.3 **“用户/你”**:指下载、安装、运行、复制、修改或以任何方式使用软件的自然人或组织。 -1.4 **“PVE/Proxmox VE 环境”**:指 Proxmox VE 及其相关宿主系统、网络、存储、虚拟机/容器与周边组件。 +- **“软件”**:指 PVE-Tools-9 及其脚本、配置模板、文档与示例。 +- **“我们/授权方”**:指 Ciriu Networks、作者及贡献者。 +- **“你/用户”**:指任何使用软件的自然人或组织。 +- **“PVE 环境”**:指 Proxmox VE 与其宿主系统、网络、存储、虚拟机/容器及相关组件。 --- -## 2. 接受与适用 +## 2. 使用前提与用户义务 -2.1 你通过下载、安装、运行或以其他方式使用软件,即表示你已阅读并同意本 ULA。 -2.2 若你不同意本 ULA 的任何条款,请勿使用软件。 +鉴于软件可能执行系统级配置变更,你同意: + +2.1 在执行可能影响系统稳定性、网络、存储、虚拟机/容器的操作前,先完成必要的备份与验证(包括配置与数据)。 +2.2 你应理解每项功能的影响范围,并在测试环境或受控维护窗口中先行验证。 +2.3 你应遵循最小权限原则运行;如需提升权限,应自行承担相应风险。 +2.4 你不得将软件用于任何违法用途,或用于破坏、入侵、未授权访问、规避安全控制等行为。 --- -## 3. 开源许可与权利来源 +## 3. 兼容性与第三方因素 -3.1 软件以 LGPLv3 许可发布。你对软件的复制、修改、分发等权利**来源于 LGPLv3**。 -3.2 本 ULA **不**限制 LGPLv3 已授予你的权利;本 ULA 仅就使用过程中的风险、合规与责任边界进行说明。 - -> 提醒(避免误解):LGPLv3 通常允许商业使用;但若你修改了受 LGPLv3 覆盖的代码并进行分发,需要满足 LGPLv3 的相应义务(例如提供源代码、允许重新链接等)。具体以 LGPLv3 原文为准。 +3.1 软件可能受 PVE 版本、宿主发行版、内核、硬件、网络与存储条件差异影响。 +3.2 对因第三方组件、系统更新、环境差异导致的问题,我们不作任何保证。 --- -## 4. 使用要求与安全义务 +## 4. 无担保声明 -鉴于软件可能涉及对 PVE 环境的系统级配置与变更,你同意: - -4.1 **备份义务**:在执行任何可能影响系统稳定性、网络、存储或虚拟机/容器的操作前,先完成你认为必要的备份与快照(含配置与数据)。 -4.2 **验证义务**:你应在测试环境或受控窗口期内验证变更,理解每个功能的影响范围。 -4.3 **最小权限原则**:你应尽量以最小必要权限运行;如需提升权限,应明确知悉其风险。 -4.4 **合规使用**:你不得将软件用于任何违法用途,或用于破坏、入侵、未授权访问、规避安全控制等行为。 +在适用法律允许的最大范围内,软件按“现状(AS IS)”“可获得(AS AVAILABLE)”提供。 +我们不提供任何明示或默示担保,包括但不限于适销性、特定用途适用性、可靠性、无错误、不中断、安全性或无侵权担保。 --- -## 5. 兼容性与第三方依赖 +## 5. 责任限制 -5.1 软件可能依赖系统组件、发行版差异、PVE 版本差异或第三方工具链;不同环境下表现可能不同。 -5.2 对因第三方组件、系统更新、配置差异、硬件差异、网络/存储条件差异导致的问题,我们不作任何保证。 +在适用法律允许的最大范围内,无论基于合同、侵权(包括过失)或其他理论,我们不对任何损失承担责任,包括但不限于: + +- 数据丢失或损坏、备份/快照失效 +- 服务中断、业务损失、利润损失 +- 系统不可用、网络中断、存储损坏、虚拟机/容器异常 +- 间接、附带、特殊、惩罚性或后果性损害 + +如法律不允许排除或限制某些责任,则我们的责任在法律允许范围内被限制到最低。 --- -## 6. 无担保声明(Disclaimer of Warranty) +## 6. 支持与维护边界 -6.1 在适用法律允许的最大范围内,软件按“现状(AS IS)”与“可获得(AS AVAILABLE)”提供。 -6.2 我们不提供任何明示或默示担保,包括但不限于适销性、特定用途适用性、可靠性、无错误、不中断、无侵权或安全性担保。 -6.3 你理解并同意:系统配置类工具具有天然风险,误操作、误配置或对环境理解不足可能造成服务中断、数据损坏或不可逆变更。 +我们可能通过 GitHub Issues/Discussions 提供社区支持,但不承诺响应时效、修复期限或兼容性承诺。 +我们可自行决定是否接受、合并或拒绝任何反馈与贡献。 --- -## 7. 责任限制(Limitation of Liability) +## 7. 变更 -7.1 在适用法律允许的最大范围内,无论基于合同、侵权(包括过失)或其他理论,我们对以下损失不承担责任: -- 数据丢失或损坏、快照/备份失效 -- 服务中断、业务损失、利润损失 -- 系统不可用、网络中断、存储损坏、虚拟机/容器异常 -- 间接、附带、特殊、惩罚性或后果性损害 - -7.2 如法律不允许排除或限制某些责任,则我们的责任在法律允许范围内被限制到最低。 +我们可在仓库中发布更新版本以修订本 ULA。你在修订后继续使用软件,即视为接受修订后的条款。 --- -## 8. 支持与维护范围 - -8.1 我们可能通过 GitHub Issues/Discussions 等方式提供社区支持,但不承诺响应时效、修复期限或兼容性承诺。 -8.2 我们可自行决定是否接受、合并或拒绝任何反馈与贡献。 - ---- - -## 9. 协议终止 - -9.1 若你违反本 ULA 或适用的开源许可(LGPLv3)条款,你使用软件的相关授权可能被终止(具体以 LGPLv3 终止条款为准)。 -9.2 终止后,你应停止任何继续违反条款的行为。 - ---- - -## 10. 变更 - -10.1 我们可在仓库内发布更新版本以修订本 ULA。 -10.2 你在修订后继续使用软件,即视为接受修订后的条款。 - ---- - -## 11. 适用法律与争议解决 - -11.1 本 ULA 的解释与适用,遵循用户所在地强制性法律规定。 -11.2 如发生争议,双方应优先友好协商;协商不成时,可提交有管辖权的法院或仲裁机构处理(以适用法律允许为限)。 - ---- - -## 12. 其他 - -12.1 **可分割性**:若部分条款被认定无效,其余条款仍有效。 -12.2 **完整协议**:本 ULA 构成关于“使用风险与责任边界”的完整约定,但不替代也不削减 LGPLv3。 +(完) diff --git a/Web/update.md b/Web/update.md index e4520c9..cbff908 100644 --- a/Web/update.md +++ b/Web/update.md @@ -7,6 +7,17 @@ description: 基于 Commit 记录整理(含正文与文件变更摘要) > 本文基于仓库 Commit 记录整理,覆盖从项目创建到如今所有的的主要迭代内容。 +## 2026年2月22日 - v6.6.0 +### ✉️ 邮件通知引导与安全防护增强 +- **新增邮件通知自动化引导**:配置数据中心 From/root 邮箱、Postfix SMTP 中继(QQ/163/Gmail/自定义)、可选发送测试邮件与 ZFS ZED 邮件参数 +- **新增 IMG 镜像导入**:自动扫描指定目录下的 `.img`,支持转换为 `qcow2/raw` 并导入到指定虚拟机与存储,可选自动挂载到 VM +- **增强非 PVE9 使用防护**:启动时强制风险确认;并对换源/更新/一键优化/升级等毁灭性自动化操作进行硬拦截 +- **硬盘直通列表增强**:新增 `ATA:` 标识列(显示 `ata-*` by-id),用于区分 wwn 信息难以对应具体 SN 的硬盘 +- **文档站合规页面优化**:TOS 与 ULA 拆分为两个独立页面并加入导航入口 +- **CI 发布流程修复**:改为 push tag 后自动创建 GitHub Release,并修复 tag 匹配触发条件 + +--- + ## 2026年2月22日 - v6.5.0 ### 🧩 NVIDIA 显卡管理与合规入口 - **新增 NVIDIA 显卡管理一级菜单**:包含显卡直通虚拟机、vGPU 配置与分配、驱动信息与监控、驱动切换与回滚 diff --git a/commits_full_with_files1.txt b/commits_full_with_files1.txt deleted file mode 100644 index cb30753..0000000 --- a/commits_full_with_files1.txt +++ /dev/null @@ -1,940 +0,0 @@ -cfc31c313127a77879573988ee2cdebe95a34687|2025-09-01|MareCyra|Initial commit -Initial commit -A LICENSE - -4039d9236f404b75eddbe3459c8cd6609dc46487|2025-09-01|MareCyra|Create README.md -Create README.md -A README.md - -bc3be32018edac817de361a841a63e450803ff31|2025-09-01|MareCyra|Update README.md -Update README.md -M README.md - -fb50ef572900efb7d7e8448ab36bf20f53e4fbe4|2025-09-01|MareCyra|Update README.md -Update README.md -M README.md - -3ac67ebdb7f7142efdd817076ddd86cbdcc2cfa9|2025-09-01|MareCyra|Update README.md -Update README.md -M README.md - -add1ee6a441cb306fe8cff57522ccfd4e86501e9|2025-09-01|MareCyra|Create PVE-Tools.sh -Create PVE-Tools.sh -A PVE-Tools.sh - -ca42bdf49c6e872d2b7d80f013b008ea9b18e143|2025-09-01|MareCyra|fix: 修复了遗漏特别鸣谢问题 -fix: 修复了遗漏特别鸣谢问题 -M README.md - -46d48562922258d2b6ad07adcb26adf2403be6bd|2025-09-01|MareCyra|fix: 修复小问题 -fix: 修复小问题 -M PVE-Tools.sh - -ba9ccbd8b66209465990e8fb733e68eed2bab0fe|2025-09-02|MareCyra|fix: 字符画 -fix: 字符画 -M README.md - -a6022ed91fc024ab8d32c2218e2a7caac82b67c4|2025-09-02|MareCyra|Update README.md -Update README.md -M README.md - -c387ce965028e90cc0ac32cd0b7b80092e72be63|2025-09-09|Mapleawaa|feat: 新增新功能 issue#2 issue#3 -feat: 新增新功能 issue#2 issue#3 - - 新增硬件直通配置(开启/关闭) - 新增 CPU 电源模式管理(performance、powersave 等) - 新增 CPU 与硬盘温度监控 - 新增 Ceph 存储支持(ceph-squid、ceph-quincy) - 新增 Ceph 卸载功能 - 更新 README.md,补充新功能说明 - 扩展主菜单,新增选项 8–14 - -M PVE-Tools.sh -M README.md -A UpdateLogs.md - -da3316e9b8fc245b86aef5283bfd0d16a99b95cc|2025-09-09|Mapleawaa|feat: 新增了调试和跳过PVE检测的功能 1. 添加了调试模式支持 2. 使用 --debug 标志跳过 PVE 检测 -feat: 新增了调试和跳过PVE检测的功能 - 1. 添加了调试模式支持 - 2. 使用 --debug 标志跳过 PVE 检测 - -M PVE-Tools.sh -M README.md - -e0e83091858b1de6699856e3e69eb81d09e47cb4|2025-09-09|Mapleawaa|feat: 去除无法显示的Emoji,修复逻辑问题,修复自动化提示 -feat: 去除无法显示的Emoji,修复逻辑问题,修复自动化提示 - -M PVE-Tools.sh -M README.md - -0a350648b419791870fd7e40a0018c0bb6ea75f4|2025-09-09|Mapleawaa|refactor: 优化日志函数输出格式,删除了emoji -refactor: 优化日志函数输出格式,删除了emoji - -M PVE-Tools.sh - -2ba24f8e8b2065799ae4a06153c7b08b382aef3e|2025-09-09|Mapleawaa|docs: 更新README文档 -docs: 更新README文档 - -更新中英文README文件内容,保持文档同步更新。 - -A README-EN.md -M README.md - -ffde0d3c29fedf34e0ddf644acc0339387f66d1e|2025-09-09|Mapleawaa|docs: 更新README添加快速开始指南和提交历史徽章 -docs: 更新README添加快速开始指南和提交历史徽章 - -在README中新增快速开始命令区块,并添加GitHub提交历史徽章链接。同时优化了部分标题格式。 - -M README-EN.md -M README.md - -dfb80476eb8097c7126a83da652b63c3c089928c|2025-09-11|Mapleawaa|fix: 移除遗漏的emoji -fix: 移除遗漏的emoji - -M PVE-Tools.sh - -e28b31383a69994afedcac87aad6e0f04bb80da5|2025-09-15|Mapleawaa|feat(内核管理): 根据 issue[#7](https://github.com/Mapleawaa/PVE-Tools-9/issues/7) 添加内核切换功能和相关文档 -feat(内核管理): 根据 issue[#7](https://github.com/Mapleawaa/PVE-Tools-9/issues/7) 添加内核切换功能和相关文档 - -A .gitignore -M PVE-Tools.sh -A "PVE-Tools.sh_\345\206\205\346\240\270\345\210\207\346\215\242\345\212\237\350\203\275.md" -M README.md - -07f147fd798dd9ca402c8735d0a721c4a54b5dfb|2025-09-15|Mapleawaa|docs: ❤️ 感谢屏幕面前的你 。 修改了文档 -docs: ❤️ 感谢屏幕面前的你 。 修改了文档 - -D "PVE-Tools.sh_\345\206\205\346\240\270\345\210\207\346\215\242\345\212\237\350\203\275.md" -M README-EN.md -M README.md - -8a64f4f9e6a5352e6843551768a06efe905aa7db|2025-09-15|Mapleawaa|docs: 在README中添加展示图片 -docs: 在README中添加展示图片 - -M README-EN.md -M README.md -A image.png - -39cada7eb9d0e79e6d0560e3c61e1e59f13d057b|2025-09-19|Mapleawaa|feat: 添加镜像源选择功能和版本检查 -feat: 添加镜像源选择功能和版本检查 - -实现镜像源选择菜单和自动版本检查功能,增强软件源配置灵活性 - -M PVE-Tools.sh -A VERSION - -af17838157f8700e906175f263f13b695eec5915|2025-09-19|Mapleawaa|fix: 修复了镜像源备份文件的存放位置会被误识别警告的问题 `Notice: Ignoring file 'debian.sources.backup.20250919_170547' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension` -fix: 修复了镜像源备份文件的存放位置会被误识别警告的问题 -`Notice: Ignoring file 'debian.sources.backup.20250919_170547' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension` - -M PVE-Tools.sh - -6e1707009f1c10212f0fff7ae65a5bbb60512c24|2025-09-19|CyreneNight|删除不应该存在的更新日志文件 -删除不应该存在的更新日志文件 -D UpdateLogs.md - -d8a047c1ed1f5602559ac6e72accc4ee21a0c84d|2025-09-19|Mapleawaa|chore: 更新版本号文件 -chore: 更新版本号文件 - -更新项目版本号文件以反映最新版本信息。 - -M VERSION - -d691bb1cf38da7277ee92c6ccb4f215daae8d00e|2025-09-19|Mapleawaa|docs(README): 添加警告提示信息 -docs(README): 添加警告提示信息 - -在README文件中添加关于多次拉取文件的警告提示框,提醒用户避免被服务器拒绝。 - -M README-EN.md -M README.md - -c19525f2c361f4172a036a87c3cc8ce9cf648838|2025-09-19|Mapleawaa|feat(update): 为版本检查添加网络检测和跳过功能 -feat(update): 为版本检查添加网络检测和跳过功能 - -M PVE-Tools.sh -M VERSION - -bbb6d049baaaeb327d1dfd75c27f48df3d029d1f|2025-09-19|Mapleawaa|feat(ui): 在横幅中添加版本信息显示 -feat(ui): 在横幅中添加版本信息显示 - -M PVE-Tools.sh - -0ba764b8a930fe0144341a5f3902cd12f73eb843|2025-09-19|Mapleawaa|style: 优化脚本输出文案和格式 -style: 优化脚本输出文案和格式 - -调整日志和提示信息的文案表达,删除冗余注释,增加版本检查时的下载提示和更新指引。 - -M PVE-Tools.sh - -28238b37e6b2a49a25b229ce514ee5bdc0593113|2025-09-19|Mapleawaa|chore: 更新展示截图 -chore: 更新展示截图 - -M image.png - -bae6f745829532b7e324e535f3229558bbb12fcb|2025-09-20|Mapleawaa|fix: 修复PVE镜像源的配置,移除重复的路径拼接,更新推送新版本 -fix: 修复PVE镜像源的配置,移除重复的路径拼接,更新推送新版本 - -M PVE-Tools.sh -M VERSION - -78be1be05dfafd8cdbc96947cede6ecc68b2453e|2025-09-20|Mapleawaa|fix: 修复了错误的版本信息,导致无法识别最新版本的问题 -fix: 修复了错误的版本信息,导致无法识别最新版本的问题 - -R100 README-EN.md Docs/README-EN.md -M PVE-Tools.sh -M README.md -M VERSION -R100 image.png images/image.png - -6a6a6d4b83a53ccf2c07db8bbe42e8979d6e4b13|2025-09-22|Mapleawaa|fix: 修复了版本检查死循环的问题,请及时更新 -fix: 修复了版本检查死循环的问题,请及时更新 - -M PVE-Tools.sh - -0939adc1b6c9ce1d9d282a1a34aed27acedda572|2025-09-27|Yuri-NagaSaki|更新安全镜像源 -更新安全镜像源 - -M PVE-Tools.sh - -dd5dea6c37cb263057e3dba3f96d23c66ac13a97|2025-09-28|CyreneNight|Merge pull request #15 from Yuri-NagaSaki/main -Merge pull request #15 from Yuri-NagaSaki/main - -增加安全镜像源配置可选项 -ddd568e0efddd67186b960959e1fb07122029c33|2025-09-28|Mapleawaa|feat(security)!: 合入PVE安全镜像源,请尽快升级脚本并且换源 -feat(security)!: 合入PVE安全镜像源,请尽快升级脚本并且换源 - -M PVE-Tools.sh -M README.md -M VERSION - -dab02dd64fb1d3f88213cb4fe15cc1eef5563719|2025-09-28|Mapleawaa|docs: 修复错误的贡献者渲染图 -docs: 修复错误的贡献者渲染图 - -M README.md - -46f4128c05f52576c59689f383dbbc33c27c0dfb|2025-09-28|Mapleawaa|feat: 新增功能: PVE8 一键升级 PVE9 -feat: 新增功能: PVE8 一键升级 PVE9 - -M PVE-Tools.sh -M README.md - -2fcdfe05a4655296d8bb486f7d8679c8387d51e1|2025-09-28|Mapleawaa|docs: 更新文档 -docs: 更新文档 - -A Docs/future-guide.md -A images/enable-hardware-pci-passthrough.png -R100 images/image.png images/image.old.png -A images/kernel-info.png -A images/kernel-install.png -A images/kernel-manager-list.png -A images/kernel-manager.png -A images/main-shot.png -A images/remove-lvm.png -A images/remove-message-box.png -A images/remove-swapon.png -A images/source-manager.png -A images/sources-manager.png -A images/system-overview.png - -5cd767e4a4a1feeb73d87e84604560733b38dc05|2025-09-28|Mapleawaa|docs: 修复错误的图片引用 -docs: 修复错误的图片引用 - -M README.md - -82d7b8ff3cd4251f71148606da2ad585d77ca2db|2025-09-28|Mapleawaa|docu: 修复错误的图片引用 -docu: 修复错误的图片引用 - -M README.md - -6caaed42ecb29531f9ba53130b70f4e491d6892f|2025-09-28|Mapleawaa|docu: 修复错误的 star-history -docu: 修复错误的 star-history - -M README.md - -952c6605cc23764ad05e37853fc03378b3f06c3e|2025-09-30|Mapleawaa|feat: add GitHub Actions workflows for automated release -feat: add GitHub Actions workflows for automated release - -A .github/workflows/beta-release.yml -A .github/workflows/pr-validation.yml -A .github/workflows/release.yml - -6c1effe0f12bdaadfabe5f4c802dacd0e1152ef7|2025-10-05|Mapleawaa|refactor: 优化 UI 交互界面操作统一性 -refactor: 优化 UI 交互界面操作统一性 - -M PVE-Tools.sh -M VERSION - -b7510d33944ae74d73857d749795e4b3daf1514b|2025-10-05|Mapleawaa|fix: 替换了新的展示截图 -fix: 替换了新的展示截图 - -A images/main-shot.old.png -M images/main-shot.png - -df458561fc1fa5ecf5b0a808b7f9845df0c954cf|2025-10-11|Mapleawaa|Fix: - 修复了传感器显示信息方框无法显示完全的问题,提供一个输入询问用户可调节方框高度大小 -Fix: - 修复了传感器显示信息方框无法显示完全的问题,提供一个输入询问用户可调节方框高度大小 - -Closes #16 - -M .gitignore -A .newUI -M PVE-Tools.sh -A PVE-Tools.sh.bak -A pve-tool.sh - -24dff7b438ec7886fde738492c2d2287f05c2daa|2025-10-11|Mapleawaa|Fix: 版本升级,尽快更新 -Fix: 版本升级,尽快更新 - -M VERSION - -c83c63c316534300a36f52cea17481b808391537|2025-10-11|Mapleawaa|Fix: 修复了语法问题导致脚本无法启动的问题 -Fix: 修复了语法问题导致脚本无法启动的问题 - -D .newUI -M PVE-Tools.sh -D PVE-Tools.sh.bak -D pve-tool.sh - -19cea888a17cf414f53142f024de37c22d2ab733|2025-10-11|Introl-ljl|Fix: 删除重复内容 -Fix: 删除重复内容 - -M PVE-Tools.sh - -a508783faf79ec5b5692995113c384b13178b328|2025-10-11|Introl-ljl|Fix: 优化菜单对齐输出方式,使用echo替代printf以增强可读性 -Fix: 优化菜单对齐输出方式,使用echo替代printf以增强可读性 - -M PVE-Tools.sh - -ee9622900858866a667136704eebc194d1487c77|2025-10-11|Introl-ljl|Fix: 修复颜色可选参数无法正确处理的问题。 -Fix: 修复颜色可选参数无法正确处理的问题。 - -M PVE-Tools.sh - -6167601b06d9796697c4b0685d3a287e61aad1b4|2025-10-11|Introl-ljl|Revert "Fix: 删除重复内容" -Revert "Fix: 删除重复内容" - -This reverts commit 19cea888a17cf414f53142f024de37c22d2ab733. - -M PVE-Tools.sh - -599a4d661cfc8419c1b0bff767afc28f541cdc29|2025-10-11|Introl-ljl|Fix: 修改菜单选择输入方式,使用read命令避免重复。 -Fix: 修改菜单选择输入方式,使用read命令避免重复。 - -M PVE-Tools.sh - -37c4a5977dfef1dd97dd65147cbbe1c7fe27b927|2025-10-11|Mapleawaa|Fix: 修复了字符串显示错误导致的颜色代码混乱 -Fix: 修复了字符串显示错误导致的颜色代码混乱 - -M PVE-Tools.sh - -cca86858bb227aba9409d91230f46b0504548660|2025-10-11|Mapleawaa|Fix: 修复了颜色代码无法渲染的问题 -Fix: 修复了颜色代码无法渲染的问题 - -M PVE-Tools.sh - -e04c0f75a6816b5631768da484d40ce29bdc09d3|2025-10-11|CyreneNight|Merge branch 'main' into main -Merge branch 'main' into main -ae8846f00a2c0069f3a98e56fa96a1b830a2424c|2025-10-11|CyreneNight|Merge pull request #17 from Introl-ljl/main -Merge pull request #17 from Introl-ljl/main - -Fix: 修复了一堆奇奇怪怪的问题 -466f0fe070c8a9ba7ae30776011971deb3ac2c75|2025-10-11|Mapleawaa|修复脚本中颜色字符错误问题\n\n修复了菜单显示中出现格式化字符串 %-3s. %s 的问题\n修改了 show_menu_option 函数中的 printf 语句 -修复脚本中颜色字符错误问题\n\n修复了菜单显示中出现格式化字符串 %-3s. %s 的问题\n修改了 show_menu_option 函数中的 printf 语句 - -Co-authored-by: Qwen-Coder - -M PVE-Tools.sh - -ec699cb02494b4a5c974cefc014fff4a4b7faa9a|2025-10-11|Mapleawaa|Fix: 修复了众多历史遗留问题 1. 界面优化 - 修复颜色代码显示问题,使用 echo -e 替代 printf - 简化所有UI边框元素为普通虚线 - 移除颜色格式化,使用纯文本显示 -Fix: 修复了众多历史遗留问题 -1. 界面优化 - - 修复颜色代码显示问题,使用 echo -e 替代 printf - - 简化所有UI边框元素为普通虚线 - - 移除颜色格式化,使用纯文本显示 - -2. 内核安装增强 - - 改进 install_kernel 函数,支持完整包名和版本号两种格式 - - 增强依赖检测和用户引导 - -3. 菜单重构 - - 合并温度监控选项到专用子菜单 - - 合并Ceph相关选项到专用子菜单 - - 重新编号主菜单选项(1-13) - - 更新所有对应的case语句 - -4. 自定义温度监控 - - 实现交互式菜单系统,支持详细传感器配置 - - 添加多种监控选项(CPU频率、温度、功耗、磁盘信息等) - - 实现依赖检查和预设配置方案 - -5. 代码一致性 - - 统一纯文本格式化 - - 保持功能完整性的同时简化视觉元素 - -M PVE-Tools.sh -A test_approaches.sh -A test_colors.sh -A test_colors_detailed.sh -A test_final_solution.sh -A test_ui_changes.sh -A test_updated_function.sh - -9017702026a65281830e2811d6e54685d3adeadf|2025-10-11|Mapleawaa|忘了删测试脚本了 F**K -忘了删测试脚本了 F**K - -D test_approaches.sh -D test_colors.sh -D test_colors_detailed.sh -D test_final_solution.sh -D test_ui_changes.sh -D test_updated_function.sh - -3ea1a5a01d13421a7c59ba3edb88fea493977ec6|2025-10-11|Mapleawaa|Fix:修复了许多历史遗留问题,请尽快更新 1. 界面优化 - 修复颜色代码显示问题,使用 echo -e 替代 printf - 简化所有UI边框元素为普通虚线 - 移除颜色格式化,使用纯文本显示 -Fix:修复了许多历史遗留问题,请尽快更新 -1. 界面优化 - - 修复颜色代码显示问题,使用 echo -e 替代 printf - - 简化所有UI边框元素为普通虚线 - - 移除颜色格式化,使用纯文本显示 - -2. 内核安装增强 - - 改进 install_kernel 函数,支持完整包名和版本号两种格式 - - 增强依赖检测和用户引导 - -3. 菜单重构 - - 合并温度监控选项到专用子菜单 - - 合并Ceph相关选项到专用子菜单 - - 重新编号主菜单选项(1-13) - - 更新所有对应的case语句 - -4. 自定义温度监控 - - 实现交互式菜单系统,支持详细传感器配置 - - 添加多种监控选项(CPU频率、温度、功耗、磁盘信息等) - - 实现依赖检查和预设配置方案 - -5. 更新检查功能增强 - - 改进 check_update() 函数,支持从VERSION和UPDATE双文件获取更新信息 - - 新增通用下载函数 download_file,替代原有 download_version_file - - 添加UPDATE文件的镜像URL支持 - -6. 双源更新信息机制 - - 优先从VERSION文件获取版本信息(保持向后兼容) - - 同时从UPDATE文件获取详细更新内容(如可用) - - UPDATE文件不可用时回退到VERSION文件的更新日志 - -7. 更新显示优化 - - 改进更新信息展示格式,提供更好的可读性 - - 智能显示详细更新信息或基础版本信息 - - 保持虚线分隔符的UI风格一致性 - -8. 代码一致性 - - 统一纯文本格式化 - - 保持功能完整性的同时简化视觉元素 - -M PVE-Tools.sh -A UPDATE -M VERSION - -8dbcd244fdbb7ef885e47e123825a5f09a24353f|2025-10-11|Mapleawaa|docs: 更换封面图 -docs: 更换封面图 - -A images/main-shot.oldd.png -M images/main-shot.png - -bdf651e7d4811885a0fcfc4ef42a42f17e93fbbe|2025-10-13|Mapleawaa|fix(scope): 修复了错误的温度检测代码部分 -fix(scope): 修复了错误的温度检测代码部分 - -问题来源于盲目使用 AI LLM 修改代码导致的Debug 疏忽,带来不便还请谅解,后续会 review AI 编写的代码 - -Closes #18 - -M .gitignore -M PVE-Tools.sh - -cbba2d557a8d90e8636d62c9792be83ec81548a7|2025-10-17|Mapleawaa|Fix: 修复了 CT 模板 URL 错误,二次替换源功能失效的问题 -Fix: 修复了 CT 模板 URL 错误,二次替换源功能失效的问题 - -M PVE-Tools.sh - -4802610f9c1103321f3b969167eadea0c53a1af0|2025-10-17|Mapleawaa|docs: add issue templates for bug reports and feature requests -docs: add issue templates for bug reports and feature requests - -A .github/workflows/ISSUE-TEMPLATE/feature-request.md -A .github/workflows/ISSUE-TEMPLATE/report-bugs.md - -8c07e703760b364ca1a4a85b00d6e83228a57aef|2025-10-17|Mapleawaa|docs: add issue templates for bug reports and feature requests -docs: add issue templates for bug reports and feature requests - -R100 .github/workflows/ISSUE-TEMPLATE/feature-request.md .github/ISSUE-TEMPLATE/feature-request.md -R100 .github/workflows/ISSUE-TEMPLATE/report-bugs.md .github/ISSUE-TEMPLATE/report-bugs.md - -050cde4dcb15cf3c26c922654418cd9ef192a410|2025-10-17|Mapleawaa|docs: 新增 issue 模板 -docs: 新增 issue 模板 - -A .github/ISSUE-TEMPLATE/config.yml - -d165934bd51950beebd18d5f8d0513d897f8d27e|2025-10-17|Mapleawaa|docs: -docs: - -R100 .github/ISSUE-TEMPLATE/config.yml .github/ISSUE_TEMPLATE/config.yml -R100 .github/ISSUE-TEMPLATE/feature-request.md .github/ISSUE_TEMPLATE/feature-request.md -R100 .github/ISSUE-TEMPLATE/report-bugs.md .github/ISSUE_TEMPLATE/report-bugs.md - -03c1644b3a138b6fec6dbac5ce518fcb22fb9a65|2025-10-17|Mapleawaa|feat: Add various Proxmox VE helper scripts for monitoring, installation, and configuration -feat: Add various Proxmox VE helper scripts for monitoring, installation, and configuration - -- Introduced `monitor-all.sh` for monitoring and restarting LXC and VM instances based on ping status. -- Added `netdata.sh` for installing and uninstalling NetData on Proxmox VE. -- Created `post-pbs-install.sh` for post-installation routines specific to Proxmox Backup Server. -- Developed `post-pve-install.sh` for post-installation routines specific to Proxmox VE. -- Implemented `scaling-governor.sh` to manage CPU scaling governors and set crontab for persistence. -- Added `update-lxcs.sh` for updating LXC containers with options to exclude specific containers. - -M PVE-Tools.sh -A Tools/.gitkeep -A Tools/README.md -A Tools/clean-lxcs.sh -A Tools/cron-update-lxcs.sh -A Tools/fstrim.sh -A Tools/host-backup.sh -A Tools/kernel-clean.sh -A Tools/kernel-pin.sh -A Tools/microcode.sh -A Tools/monitor-all.sh -A Tools/netdata.sh -A Tools/post-pbs-install.sh -A Tools/post-pve-install.sh -A Tools/scaling-governor.sh -A Tools/update-lxcs.sh -M UPDATE - -501588a6b2d9b43eae0d407b999a45671662e316|2025-10-17|Mapleawaa|update: 更新版本号 -update: 更新版本号 - -M PVE-Tools.sh -M VERSION - -7c25c8ce535595d6e783c53401bb354b3c94b83d|2025-10-17|Mapleawaa|fix: 修复了日志输出中的颜色代码问题,采用更简洁的格式显示信息,提升可读性。 -fix: 修复了日志输出中的颜色代码问题,采用更简洁的格式显示信息,提升可读性。 - -M PVE-Tools.sh - -a6ceec02da919c13203f6a38ff8cda58a483ff89|2025-10-17|Mapleawaa|docs: 展示新功能,更换头图 -docs: 展示新功能,更换头图 - -M README.md -A images/little-tools.png -A images/main-shot.olddd.png -M images/main-shot.png - -3cf1c5680231c8133765169f8d6650f52d3277b6|2025-10-17|Mapleawaa|feat: 新增第三方工具集成功能 (v4.1.0) -feat: 新增第三方工具集成功能 (v4.1.0) - - 功能特性: - - 集成 tteck/Proxmox 社区的 13 个实用工具 - - 智能下载管理(curl 优先,进度显示) - - 安全执行机制(二次确认 + 日志审计) - - 优化 TUI 颜色显示,保持界面和谐 - - 新增 Tools 目录和完整文档 - - 工具来源: https://github.com/tteck/Proxmox - 致谢: tteck 社区 - - Co-authored-by: Claude Code - -M README.md - -5a810d0a4da3603396e311d12d59a74519666c2c|2025-10-23|Mapleawaa|Fix: 修复用户反馈问题并优化系统功能 -Fix: 修复用户反馈问题并优化系统功能 - -- 移除传感器检测项目的可选配置项 Closes #20, #21 -- 修复新增/修改传感器后信息框被遮挡的显示问题 Closes #23, #19 -- 更新小工具来源配置 -- 优化系统稳定性与性能表现 - -M .gitignore -M PVE-Tools.sh - -6f8b2c93b493337ec120589cac895704275c2b98|2025-10-23|Mapleawaa|Fix: 修复用户反馈问题并优化系统功能 -Fix: 修复用户反馈问题并优化系统功能 - -- 移除传感器检测项目的可选配置项 Closes #20, #21 -- 修复新增/修改传感器后信息框被遮挡的显示问题 Closes #23, #19 -- 更新小工具来源配置 -- 优化系统稳定性与性能表现 - -M PVE-Tools.sh -M UPDATE -M VERSION - -d8eccc6b688f6d6d568a3c0e33ebc399840dd697|2025-10-23|Mapleawaa|Fix: 修复用户反馈问题并优化系统功能 -Fix: 修复用户反馈问题并优化系统功能 - -- 移除传感器检测项目的可选配置项 Closes #20, Closes #21 -- 修复新增/修改传感器后信息框被遮挡的显示问题 Closes #23, Closes #19 -- 更新小工具来源配置 -- 优化系统稳定性与性能表现 - -M PVE-Tools.sh - -08ead9c609033ff9f3cca51b2008f33390cc5f41|2025-10-24|Mapleawaa|fix: 修复了 CT 模板地址错误的问题 感谢 @BluestoneVale - Closes #24 -fix: 修复了 CT 模板地址错误的问题 感谢 @BluestoneVale - Closes #24 - -M PVE-Tools.sh - -81f5c37e8f3e50d29044e8f7f85d80d916e0221e|2025-10-24|Mapleawaa|fix: 修复了错误的 CT 源 -fix: 修复了错误的 CT 源 - -M PVE-Tools.sh - -1a48274ba3c01bd9c651bf2aa33f6a4c2bd7ca75|2025-11-04|Mapleawaa|fix: 修复了温度传感器显示部分模块的一系列问题 -fix: 修复了温度传感器显示部分模块的一系列问题 - -M .github/ISSUE_TEMPLATE/config.yml -M PVE-Tools.sh -M UPDATE - -f882dc92f2094de35fe0b7c3a8c8c9ab8fe46ef7|2025-11-04|Mapleawaa|docs: 修改 Readme 关闭 ISSUE Closes #25 Closes #6 -docs: 修改 Readme -关闭 ISSUE Closes #25 Closes #6 - -M README.md - -ad25829f4aefa45c3e8a0d1898cfa227a231b978|2025-11-04|Mapleawaa|feat: 新增 UPS 信息检测 感谢 @siyrs 提供的代码和思路。 Closes #27 -feat: 新增 UPS 信息检测 感谢 @siyrs 提供的代码和思路。 Closes #27 - -M PVE-Tools.sh - -d0d02fe80744e7b5f407ec8b3c7533cce09a14dc|2025-11-11|Mapleawaa|feat: 新增功能和修复 - fix: UPS 监控项目的异常,原因是无设备情况下直接显示了错误信息 - feat: 新增核显直通菜单和功能项 -feat: 新增功能和修复 - - fix: UPS 监控项目的异常,原因是无设备情况下直接显示了错误信息 - - feat: 新增核显直通菜单和功能项 - - Closes #29 - Closes #32 - -M PVE-Tools.sh -M UPDATE -M VERSION - -77ca7f23bc844bc07046bf5fa3659b5bf022b2fb|2025-11-11|Mapleawaa|fix: 忘记改版本号了 -fix: 忘记改版本号了 - -M PVE-Tools.sh -M UPDATE - -ea6f8491dabd34f80f98fb71822f4d22f7df9bc5|2025-11-11|Mapleawaa|docs: 修复了错误的头图 -docs: 修复了错误的头图 - -M PVE-Tools.sh -R100 images/main-shot.old.png images/main-shot-3.0.png -R100 images/main-shot.oldd.png images/main-shot-3.1.png -R100 images/main-shot.olddd.png images/main-shot-4.0.png -A images/main-shot-4.1.png -M images/main-shot.png - -775095c0adaf05c00be107fc63907a488c733f84|2025-11-11|Mapleawaa|fix: 修复了核显拆分部分错误的页面逻辑 -fix: 修复了核显拆分部分错误的页面逻辑 - -M PVE-Tools.sh - -8823fd4e2506763b62d4fac61058119e212ab715|2025-11-14|Mapleawaa|fix: 修复了#32 #33 的历史遗留问题 Closes #32 Closes #33 -fix: 修复了#32 #33 的历史遗留问题 -Closes #32 Closes #33 - -M PVE-Tools.sh -M README.md -M UPDATE -M VERSION - -ea06b89328f717d15d11d23427c20c6698293d7c|2025-11-21|Mapleawaa|fix: 修复了 AMD 系列 CPU 温度显示出现异常的问题 Closes #31 -fix: 修复了 AMD 系列 CPU 温度显示出现异常的问题 Closes #31 - -A AGENTS.md -M PVE-Tools.sh - -4702a6c548500e6dc7b97b9d15626040420ee12b|2025-11-21|Mapleawaa|docs: 增加移除 codex 文件 -docs: 增加移除 codex 文件 - -M .gitignore - -231f8bbc13361126a9ef4f73bfac187d45d10059|2025-11-21|CyreneNight|Delete AGENTS.md -Delete AGENTS.md -D AGENTS.md - -e66afba49ef830ef15e7b2cfcdc9cf58a0529771|2025-11-21|Mapleawaa|feat: 核显直通部分驱动选择问题修复完成。 Closes #37 -feat: 核显直通部分驱动选择问题修复完成。 Closes #37 - -M PVE-Tools.sh -M README.md - -6dceb958525a4683b3145beaf896682e8c4b625c|2025-11-28|Mapleawaa|feat: 修复新增巨多功能 - 修复了检查更新过久的问题 - 优化了 UI,删除了过于重复和臃肿的 UI - 删除了一些功能部分的颜色代码 - 新增核显显卡直通,显卡虚拟化的功能(~~大饼~~) - 新增了虚拟机快速安装脚本 - 修复了错误的 CT 模板 -feat: 修复新增巨多功能 - - 修复了检查更新过久的问题 - - 优化了 UI,删除了过于重复和臃肿的 UI - - 删除了一些功能部分的颜色代码 - - 新增核显显卡直通,显卡虚拟化的功能(~~大饼~~) - - 新增了虚拟机快速安装脚本 - - 修复了错误的 CT 模板 - -M PVE-Tools.sh -M Tools/README.md -A images/main-shot-4.3.png -M images/main-shot.png - -9097b757e87f9c90c6a32e2290a4a8290396ed8e|2025-11-28|Mapleawaa|docs: 更换错误版本的头图,修复错误的 Markdown 文本 -docs: 更换错误版本的头图,修复错误的 Markdown 文本 - -M README.md -M images/main-shot.png - -63b00862cfcbd37fefa7710a395d25b567c14837|2025-11-28|Mapleawaa|docs: 优化一下排版 -docs: 优化一下排版 - -M README.md - -1430c38d4cfc93d594d8d57922895adcecb6fdf1|2025-11-28|201853910|更新ceph换的源出错问题 -更新ceph换的源出错问题 -M PVE-Tools.sh - -fb30a57e17b1a4533382c44e574cae7d99703d30|2025-11-29|CyreneNight|Merge pull request #43 from 201853910/patch-1 -Merge pull request #43 from 201853910/patch-1 - -更新ceph换的源出错问题 -2a096af6706f73aa187a755b6a7f8f0cc48aa9c0|2025-11-29|Mapleawaa|docs: 修改 Issue Workflow -docs: 修改 Issue Workflow - -M .github/ISSUE_TEMPLATE/config.yml - -74634631057a90eb3e4039528fbcbe03629185ef|2025-11-29|Mapleawaa|docs: 修改了 Issue template -docs: 修改了 Issue template - -M .github/ISSUE_TEMPLATE/config.yml -A .github/ISSUE_TEMPLATE/fast-bugs-report.md - -e09ec763235dea498e625a4f09c9f617ec1b1d03|2025-12-03|CyreneNight|Remove ASCII art from README.md -Remove ASCII art from README.md - -Removed ASCII art section from README. -M README.md - -4b94001d2be8c33a55c894e7342fa93ee31a7254|2025-12-03|CyreneNight|Fix README formatting and remove duplicate text -Fix README formatting and remove duplicate text - -Removed duplicate description line and adjusted formatting. -M README.md - -e60a4ce08d82380fe4d3de0e8fb04ae4c480674c|2025-12-03|CyreneNight|Fix formatting in README.md -Fix formatting in README.md -M README.md - -3b98fffbb7849567cbe5a3e4d1d0ffea74d70a03|2025-12-03|CyreneNight|Fix formatting issues in README.md -Fix formatting issues in README.md -M README.md - -47c338d37f8746eafeb671df86f31f61cacdacd9|2025-12-09|CyreneNight|Revise project maintenance notice and links -Revise project maintenance notice and links - -Updated project status and added new repository links. -M README.md - -795021342d5f4ee9569ab96a82a3b0cd2407fafa|2025-12-09|CyreneNight|Fix formatting of repository links in README -Fix formatting of repository links in README -M README.md - -f0bfd9a36c059d9fce8c1b06c37e19fd83e1a7b6|2025-12-15|Mapleawaa|fix: 修复了UPS监控项的问题 Closes #49 - 新增从 apcaccess status 中解析 NOMPOWER ,展示 UPS 额定功率(W) - 根据 NOMPOWER 与 LOADPCT 估算当前功率,并在 UI 中显示 - 对 STATUS 做中文化映射(ONLINE / ONBATT / CHRG / DISCHRG) - 兼容 OUTPUTV / LINEV 两种电压字段 - 对缺失字段增加默认值,避免异常导致整块 UPS 信息解析失败 -fix: 修复了UPS监控项的问题 Closes #49 -- 新增从 apcaccess status 中解析 NOMPOWER ,展示 UPS 额定功率(W) -- 根据 NOMPOWER 与 LOADPCT 估算当前功率,并在 UI 中显示 -- 对 STATUS 做中文化映射(ONLINE / ONBATT / CHRG / DISCHRG) -- 兼容 OUTPUTV / LINEV 两种电压字段 -- 对缺失字段增加默认值,避免异常导致整块 UPS 信息解析失败 - -M PVE-Tools.sh - -1b92a254e61069df6e33d94b9402e350b24003e5|2025-12-15|Mapleawaa|Merge branch 'main' of https://github.com/Mapleawaa/PVE-Tools-9 -Merge branch 'main' of https://github.com/Mapleawaa/PVE-Tools-9 - -1ad3f6415fec59c02b3679280827579849dc6d6a|2025-12-22|Aethersailor|Update international network install script URL -Update international network install script URL - -Changed the script URL in the README to use the raw content link from GitHub for international network installation instructions. - -M README.md - -f67aff54bc55f36bcb72099faf53a55ca257179b|2025-12-26|CyreneNight|docs: 修复了错误的快捷命令 -docs: 修复了错误的快捷命令 - -Update international network install script URL -306041d363c737c61810de4da8a59540e2182489|2026-01-06|Mapleawaa|style: 移除菜单和版本信息中的多余空行 -style: 移除菜单和版本信息中的多余空行 - -删除show_menu函数和版本信息显示中的多余空行,保持界面整洁统一 - -M PVE-Tools.sh - -943c7f57bbaa5e8b4cee6fc9c8ae177c25b15c7f|2026-01-06|Mapleawaa|Merge branch 'main' of https://github.com/Mapleawaa/PVE-Tools-9 -Merge branch 'main' of https://github.com/Mapleawaa/PVE-Tools-9 - -a5d1ca3bda53a47626a28bd75bbab08967938c00|2026-01-14|Mapleawaa|fix: 优化移除 PVE 订阅弹窗的匹配逻辑 -fix: 优化移除 PVE 订阅弹窗的匹配逻辑 - -通过修改状态判断逻辑(将 !== 'active' 改为 == 'active')来屏蔽弹窗,提高对新版本 PVE 的兼容性。同时引入 Perl 处理多行匹配作为备用方案,增强脚本的鲁棒性。 - -M PVE-Tools.sh -A proxmoxlib.js - -96f1b5f2ab1c38e896b644b389c3cff68a8c5de2|2026-01-14|Mapleawaa|feat: 更新至 v6.0.0 并新增 Intel 核显直通与救砖工具 -feat: 更新至 v6.0.0 并新增 Intel 核显直通与救砖工具 - -1. 版本号从 5.0.0 升级至 6.0.0。 -2. 重构主菜单结构,采用二级菜单分类,提升交互体验。 -3. 新增 Intel 6-14 代核显直通自动化配置功能,支持自动下载 ROM 和修改版 QEMU。 -4. 新增“应急救砖工具箱”,支持恢复官方 proxmoxlib.js、重置驱动黑名单及还原官方 QEMU。 -5. 优化 CI/CD 流程,引入 shc 将脚本编译为二进制文件发布。 -6. 优化日志记录机制,减少控制台冗余输出。 - -M .github/workflows/release.yml -M PVE-Tools.sh -M UPDATE -M VERSION -A release ROM - -c7e29ebff67dcd8f9e01355978fcc6f6625094aa|2026-01-14|GitHub Action|chore: update version to 6.0.0 -chore: update version to 6.0.0 - -M VERSION - -b82273a8232b92b5dc82bf8fec349e3079fafd89|2026-01-14|Mapleawaa|docs: 更新项目主截图并新增备选图 -docs: 更新项目主截图并新增备选图 - -更新 main-shot.png 以反映最新的界面状态,并添加 main-shot.5.png 作为补充文档素材。 - -A images/main-shot.5.png -M images/main-shot.png - -5f1fa1b027aea5ff2a1492117e259e1bb119a03d|2026-01-14|Mapleawaa|Merge branch 'main' of https://github.com/Mapleawaa/PVE-Tools-9 -Merge branch 'main' of https://github.com/Mapleawaa/PVE-Tools-9 - -6136d002a2d4fb60e2621ea3f1822a621e51d91a|2026-01-18|CyreneNight|Update README with script options and features -Update README with script options and features - -Added documentation for script options and features. -M README.md - -ca6f776b3009a62030efc7e8162b5c9d648ddbcf|2026-01-18|CyreneNight|Remove main features and supported functions sections -Remove main features and supported functions sections - -Removed main features and supported functions sections from the README. -M README.md - -6d6878557a74d8d98a12a8e7c50860659b348445|2026-01-20|Mapleawaa|fix: 优化磁盘休眠检测逻辑并更新版本 -fix: 优化磁盘休眠检测逻辑并更新版本 - -1. 在磁盘休眠检测中增加对 SAS 协议的判断,避免对 SAS 盘使用 hdparm 导致误报。 -2. 将版本号从 6.0.0 升级至 6.0.1。 - -M PVE-Tools.sh -M UPDATE -M VERSION - -5672fa862d15ad2f5e8d4e00656e64ecda636832|2026-01-20|Mapleawaa|Merge branch 'main' of https://github.com/Mapleawaa/PVE-Tools-9 -Merge branch 'main' of https://github.com/Mapleawaa/PVE-Tools-9 - -c0c2c7341fdeae5775f41733c82bdf566ca0b879|2026-01-20|CyreneNight|Update star count from 500 to 1K in README -Update star count from 500 to 1K in README -M README.md - -da52a04a27beb379d77ae14fa76c15528d926565|2026-02-03|Mapleawaa|feat: 优化 iGPU SR-IOV 配置以兼容 PVE 9.1 Closes #65 -feat: 优化 iGPU SR-IOV 配置以兼容 PVE 9.1 Closes #65 - -在 GRUB 参数中添加 module_blacklist=xe,防止 6.8+ 内核中新的 xe 驱动与 i915 驱动冲突,确保 SR-IOV 功能在 PVE 9.1 环境下正常运行。 - -M PVE-Tools.sh - -543e4b11b438f1334e35853182eb880ebf0508e0|2026-02-06|Mapleawaa|feat: 新增 Web 官方文档并优化脚本配置管理 -feat: 新增 Web 官方文档并优化脚本配置管理 - -1. 在 Web 目录下基于 VitePress 构建了全新的官方文档,包含使用指南、功能特性及 FAQ。 -2. 为脚本新增了配置块安全管理函数 (`apply_block`, `remove_block`),支持带标记的幂等修改。 -3. 引入了 GRUB 参数幂等管理函数,实现对 `/etc/default/grub` 配置的精准增删。 -4. 优化了核显虚拟化 (SR-IOV/GVT-g) 的配置逻辑,自动处理驱动冲突并增强兼容性。 -5. 更新了 `.gitignore` 以适配 VitePress 项目,并修正了部分脚本逻辑漏洞。 - -M .gitignore -M PVE-Tools.sh -A Web/.vitepress/config.mts -A Web/.vitepress/theme/components/CopyCodeBox.vue -A Web/.vitepress/theme/custom.css -A Web/.vitepress/theme/index.ts -A Web/assets/images/Proxmox-Corporate-Brandguideline.pdf -A Web/assets/images/Proxmox_logos_full_lockup_SVG/proxmox-full-lockup-color.svg -A Web/assets/images/Proxmox_logos_full_lockup_SVG/proxmox-full-lockup-inverted-color.svg -A Web/assets/images/Proxmox_logos_full_lockup_SVG/proxmox-logo-stacked-color.svg -A Web/assets/images/Proxmox_logos_full_lockup_SVG/proxmox-logo-stacked-inverted-color.svg -A Web/bun.lock -A Web/faq.md -A Web/features.md -A Web/guide.md -A Web/index.md -A Web/package.json -A Web/public/logo-dark.svg -A Web/public/logo-horizontal-dark.svg -A Web/public/logo-horizontal.svg -A Web/public/logo.svg - -dbf62340b32a89d01375d4773a0d47ed1cbc5157|2026-02-06|Mapleawaa|refactor: 重构脚本菜单结构并引入 VitePress 文档 -refactor: 重构脚本菜单结构并引入 VitePress 文档 - -1. 重新组织 PVE-Tools.sh 的主菜单及二级菜单分类,使功能逻辑更清晰 -2. 在 Web/ 目录下引入基于 VitePress 的官方文档,并优化构建脚本 -3. 增强脚本更新提示界面,支持显示详细的 Markdown 格式更新日志 -4. 修复 .gitignore 中路径匹配的格式问题 -5. 在脚本中新增大量“图吧”风格的随机小贴士,提升用户体验 - -M .gitignore -M PVE-Tools.sh -M UPDATE -M Web/package.json - -3f9e3cd3579b4483ec4545b8d3bc3ad1898e3d42|2026-02-06|Mapleawaa|chore(web): 添加 wrangler.jsonc 配置文件 -chore(web): 添加 wrangler.jsonc 配置文件 - -为项目引入 Cloudflare Workers 部署配置,指定静态资源目录为 VitePress 构建输出路径。 - -A Web/wrangler.jsonc - -d6d3ae245d143081ead3102c275101ec68d30f93|2026-02-06|Mapleawaa|chore(web): 移除 wrangler.jsonc 中多余的资源绑定 -chore(web): 移除 wrangler.jsonc 中多余的资源绑定 - -在 Cloudflare Workers 静态资产配置中移除 "binding": "ASSETS",因为现代版本的 Wrangler 不再强制要求该绑定,简化配置文件结构。 - -M Web/wrangler.jsonc - -99ff4e348588adb492101099667e11348b843f27|2026-02-06|Mapleawaa|feat(web): 添加 Cloudflare Workers 入口文件 -feat(web): 添加 Cloudflare Workers 入口文件 - -为 Web 项目添加 index.js 作为 Worker 的入口点,并在 wrangler.jsonc 中配置 main 字段。这样可以通过 Worker 代理静态资源,为后续添加自定义路由或中间件逻辑提供支持。 - -A Web/index.js -M Web/wrangler.jsonc - -dca31970c972adb2357ad5a19b8db69686b69b47|2026-02-07|Mapleawaa|feat: 新增虚拟机与容器定时开关机管理功能 -feat: 新增虚拟机与容器定时开关机管理功能 - -- 在脚本中新增定时任务管理菜单,支持对 qm 和 pct 进行自动识别与配置 -- 实现基于 /etc/cron.d/ 的幂等配置管理,支持自定义开关机时间并自动重启服务 -- 文档网站新增脚本下载源切换功能,支持多线路(Cloudflare/GitHub/CDN)选择 -- 优化文档网站视觉效果,为标题及页脚添加渐变色与颗粒感质感 -- 更新版本号至 6.2.0 并同步构建脚本与统计配置 - -M PVE-Tools.sh -M UPDATE -M VERSION -M Web/.vitepress/config.mts -M Web/.vitepress/theme/components/CopyCodeBox.vue -M Web/.vitepress/theme/custom.css -M Web/package.json - -df97f2d4b8e94974a85b184a140c34ce7b58efa4|2026-02-07|Mapleawaa|docs: 修改了README中关于新的文档站的描述 -docs: 修改了README中关于新的文档站的描述 - -M README.md